issue #40

parent 5a0813f2
...@@ -81,6 +81,9 @@ ...@@ -81,6 +81,9 @@
{% if not multi %} {% if not multi %}
<option value="" disabled{% if selected is empty %} selected{% endif %}>{{ label|striptags }}</option> <option value="" disabled{% if selected is empty %} selected{% endif %}>{{ label|striptags }}</option>
{% endif %} {% endif %}
{% if attributes.empty_value %}
<option value="">{{ attributes.empty_value }}</option>
{% endif %}
{% for option in options %} {% for option in options %}
<option value="{{ option.value|e }}"{% if selected == option.value %} selected{% endif %}> <option value="{{ option.value|e }}"{% if selected == option.value %} selected{% endif %}>
{{ option.label }} {{ option.label }}
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
<tr> <tr>
<th>Τίτλος</th> <th>Τίτλος</th>
<th>Κατηγορία</th> <th>Κατηγορία</th>
<th>Προμηθευτής</th>
<th>URL</th> <th>URL</th>
<th>Προμηθευτής</th>
<th>Χώρος</th> <th>Χώρος</th>
</tr> </tr>
</thead> </thead>
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
<tr data-software="{{ software|json_encode }}" data-id="{{ software.id }}"> <tr data-software="{{ software|json_encode }}" data-id="{{ software.id }}">
<td class="title">{{ software.title }}</td> <td class="title">{{ software.title }}</td>
<td class="category">{{ software.softwarecategory }}</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="url"><a href="{{ software.url }}" target="_blank">{{ software.url }}</a></td>
<td class="vendor">{{ software.vendor}}</td>
<td class="lab">{{ software.lab }}</td> <td class="lab">{{ software.lab }}</td>
</tr> </tr>
{% else %} {% else %}
...@@ -69,9 +69,9 @@ ...@@ -69,9 +69,9 @@
<div class="modal-body"> <div class="modal-body">
{{ macros.input('title', 'Τίτλος', '', 'text', {'required': ''}) }} {{ macros.input('title', 'Τίτλος', '', 'text', {'required': ''}) }}
{{ macros.select('softwarecategory_id', 'Κατηγορία', categories, '', {'required': ''}) }} {{ macros.select('softwarecategory_id', 'Κατηγορία', categories, '', {'required': ''}) }}
{{ macros.input('vendor', 'Προμηθευτής','', 'tel', {'required': ''}) }}
{{ macros.input('url', 'URL','', 'text', {'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=""> <input type="hidden" name="id" value="">
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
...@@ -87,8 +87,8 @@ ...@@ -87,8 +87,8 @@
<script type="text/template" id="software-row"> <script type="text/template" id="software-row">
<td class="title"><%= software.title %></td> <td class="title"><%= software.title %></td>
<td class="category"><%= software.softwarecategory %></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="url"><a href="<%= software.url %>" target="_blank"><%= software.url %></a></td>
<td class="vendor"><%= software.vendor %></td>
<td class="lab"><%= software.lab %></td> <td class="lab"><%= software.lab %></td>
</script> </script>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment