Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c1ea0cbe
authored
Nov 20, 2017
by
Sebastián Collado Montañez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
working on i18n grids
parent
0c44a752
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
sails/src/assets/scripts/modules/student/views/collections.html
sails/src/assets/scripts/modules/student/views/gridconfig.html
sails/src/assets/scripts/modules/student/views/collections.html
View file @
c1ea0cbe
...
...
@@ -11,7 +11,7 @@
<!-- Grid header -->
<div
class=
"col-xs-2 text-center"
style=
"margin-bottom:1em;"
>
<button
type=
"button"
class=
"btn btn-danger btn-grid-back"
ng-if=
"breadcrumbs.length != 0"
ng-click=
"showLastGrid()"
>
<i
class=
"fa fa-arrow-circle-left"
aria-hidden=
"true"
></i>
{{
return_to
| translate }}
<b>
{{ breadcrumbs[breadcrumbs.length-1].name }}
</b>
<i
class=
"fa fa-arrow-circle-left"
aria-hidden=
"true"
></i>
{{
'return_to'
| translate }}
<b>
{{ breadcrumbs[breadcrumbs.length-1].name }}
</b>
</button>
</div>
</div>
...
...
@@ -122,15 +122,15 @@
<div
class=
"col-xs-2 text-center"
>
<label
style=
"margin-bottom:1em;"
>
{{
grid_options
| translate }}
</label>
<label
style=
"margin-bottom:1em;"
>
{{
'grid_options'
| translate }}
</label>
<div
class=
"form-group row"
>
<button
type=
"button"
ng-if=
"!viewingGrid.active"
class=
"btn btn-default"
ng-click=
"viewingGrid.active=true;activate_grid(viewingGrid)"
style=
"min-width:9.5em;"
>
{{ grid_activate | translate }}
</button>
<button
type=
"button"
ng-if=
"viewingGrid.active"
class=
"btn btn-success"
disabled
style=
"min-width:9.25em;"
>
{{
grid_active
| translate }}
</button>
<button
type=
"button"
ng-if=
"viewingGrid.active"
class=
"btn btn-success"
disabled
style=
"min-width:9.25em;"
>
{{
'grid_active'
| translate }}
</button>
</div>
<div
class=
"form-group row"
>
<button
type=
"button"
class=
"btn btn-default"
ng-click=
"open_grid_color(viewingGrid)"
style=
"min-width:9.25em;"
>
{{
setup
| translate }}
</button>
<button
type=
"button"
class=
"btn btn-default"
ng-click=
"open_grid_color(viewingGrid)"
style=
"min-width:9.25em;"
>
{{
'setup'
| translate }}
</button>
</div>
<div
class=
"form-group row"
>
...
...
@@ -141,12 +141,12 @@
<hr>
<label
style=
"margin-bottom:1em;"
>
{{
show_grids
| translate }}
</label>
<label
style=
"margin-bottom:1em;"
>
{{
'show_grids'
| translate }}
</label>
<div
class=
"form-group row"
>
<select
ng-model=
"grid"
ng-change=
"showGrid(grid,false)"
style=
"min-width:9.5em;"
>
<option
value=
"{{grid.id}}"
ng-repeat=
"grid in gridsList track by $index"
ng-selected=
"grid.active"
>
{{
grid.name
}}
{{
grid.name
}}
</option>
</select>
</div>
...
...
sails/src/assets/scripts/modules/student/views/gridconfig.html
View file @
c1ea0cbe
...
...
@@ -3,7 +3,7 @@
<button
type=
"button"
class=
"close"
ng-click=
"cancel()"
>
<span
aria-hidden=
"true"
>
×
</span><span
class=
"sr-only"
translate
>
close
</span>
</button>
<h4
class=
"modal-title"
id=
"myModalLabel"
translate
>
{{
grid_options
| translate }}
</h4>
<h4
class=
"modal-title"
id=
"myModalLabel"
translate
>
{{
'grid_options'
| translate }}
</h4>
</div>
<div
class=
"modal-body"
>
...
...
@@ -11,7 +11,7 @@
<div
class=
"form-group"
>
<div
class=
"row"
>
<label
for=
"favcolor"
>
{{
background_color
| translate }}
</label>
<label
for=
"favcolor"
>
{{
'background_color'
| translate }}
</label>
</div>
<div
class=
"row"
>
<div
class=
"col-xs-3"
>
...
...
@@ -19,12 +19,12 @@
</div>
<div
class=
"col-xs-3"
>
<button
class=
"btn btn-danger pull-right"
ng-click=
"(gridColor = '#ffffff')"
>
<i
class=
"fa fa-eraser"
aria-hidden=
"true"
></i>
{{
color_delete
| translate }}
<i
class=
"fa fa-eraser"
aria-hidden=
"true"
></i>
{{
'color_delete'
| translate }}
</button>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"alert alert-info"
style=
"margin: 0 auto;"
translate
>
{{
background_color_picto
| translate }}
<div
class=
"alert alert-info"
style=
"margin: 0 auto;"
>
{{
'background_color_picto'
| translate }}
</div>
</div>
</div>
...
...
@@ -34,6 +34,6 @@
</div>
<div
class=
"modal-footer text-right"
>
<button
class=
"btn btn-success"
ng-click=
"close(gridColor)"
>
{{
save
| translate }}
</button>
<button
class=
"btn btn-success"
ng-click=
"close(gridColor)"
>
{{
'save'
| translate }}
</button>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment