Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
gredu_labs
Commits
94b5710b
Commit
94b5710b
authored
Mar 16, 2016
by
Vassilis Kanellopoulos
Browse files
issue #40
parent
5a0813f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
module/schools/templates/schools/form.twig
View file @
94b5710b
...
...
@@ -81,6 +81,9 @@
{%
if
not
multi
%}
<option
value=
""
disabled
{%
if
selected
is
empty
%}
selected
{%
endif
%}
>
{{
label
|
striptags
}}
</option>
{%
endif
%}
{%
if
attributes.empty_value
%}
<option
value=
""
>
{{
attributes.empty_value
}}
</option>
{%
endif
%}
{%
for
option
in
options
%}
<option
value=
"
{{
option.value
|
e
}}
"
{%
if
selected
==
option.value
%}
selected
{%
endif
%}
>
{{
option.label
}}
...
...
module/schools/templates/schools/software.twig
View file @
94b5710b
...
...
@@ -27,8 +27,8 @@
<tr>
<th>
Τίτλος
</th>
<th>
Κατηγορία
</th>
<th>
Προμηθευτής
</th>
<th>
URL
</th>
<th>
Προμηθευτής
</th>
<th>
Χώρος
</th>
</tr>
</thead>
...
...
@@ -37,8 +37,8 @@
<tr
data-software=
"
{{
software
|
json_encode
}}
"
data-id=
"
{{
software.id
}}
"
>
<td
class=
"title"
>
{{
software.title
}}
</td>
<td
class=
"category"
>
{{
software.softwarecategory
}}
</td>
<td
class=
"vendor"
>
{{
software.vendor
}}
</td>
<td
class=
"url"
><a
href=
"
{{
software.url
}}
"
target=
"_blank"
>
{{
software.url
}}
</a></td>
<td
class=
"vendor"
>
{{
software.vendor
}}
</td>
<td
class=
"lab"
>
{{
software.lab
}}
</td>
</tr>
{%
else
%}
...
...
@@ -69,9 +69,9 @@
<div
class=
"modal-body"
>
{{
macros.input
(
'title'
,
'Τίτλος'
,
''
,
'text'
,
{
'required'
:
''
}
)
}}
{{
macros.select
(
'softwarecategory_id'
,
'Κατηγορία'
,
categories
,
''
,
{
'required'
:
''
}
)
}}
{{
macros.input
(
'vendor'
,
'Προμηθευτής'
,
''
,
'tel'
,
{
'required'
:
''
}
)
}}
{{
macros.input
(
'url'
,
'URL'
,
''
,
'text'
,
{
'required'
:
''
}
)
}}
{{
macros.select
(
'lab_id'
,
'Χώρος'
,
labs
,
''
,
{}
)
}}
{{
macros.input
(
'vendor'
,
'Προμηθευτής'
,
''
,
'tel'
,
{
'required'
:
''
}
)
}}
{{
macros.select
(
'lab_id'
,
'Χώρος'
,
labs
,
''
,
{
empty_value
:
'ΟΧΙ ΣΕ ΣΥΓΚΕΚΡΙΜΕΝΟ ΧΩΡΟ'
}
)
}}
<input
type=
"hidden"
name=
"id"
value=
""
>
</div>
<div
class=
"modal-footer"
>
...
...
@@ -87,8 +87,8 @@
<script
type=
"text/template"
id=
"software-row"
>
<
td
class
=
"
title
"
><%=
software
.
title
%><
/td
>
<
td
class
=
"
category
"
><%=
software
.
softwarecategory
%><
/td
>
<
td
class
=
"
vendor
"
><%=
software
.
vendor
%><
/td
>
<
td
class
=
"
url
"
><
a
href
=
"
<%= software.url %>
"
target
=
"
_blank
"
><%=
software
.
url
%><
/a></
td
>
<
td
class
=
"
vendor
"
><%=
software
.
vendor
%><
/td
>
<
td
class
=
"
lab
"
><%=
software
.
lab
%><
/td
>
</script>
...
...
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