Skip to content
Snippets Groups Projects
Commit f1371bf8 authored by anonymous's avatar anonymous
Browse files

remove broken multiselect

parent ac76468b
No related branches found
No related tags found
No related merge requests found
{% ckan_extends %} {% ckan_extends %}
{% block styles %} {% block styles %}
{{ super() }} {{ super() }}
<script type="text/javascript" src="bootstrap-multiselect.js"></script>
{% resource 'odsh/odsh.js' %} {% resource 'odsh/odsh.js' %}
<link rel="stylesheet" href="/odsh.css?refresh={{ range(1,10000) | random }}" /> <link rel="stylesheet" href="/odsh.css?refresh={{ range(1,10000) | random }}" />
<link rel="stylesheet" href="/odsh_header.css?refresh={{ range(1,10000) | random }}" /> <link rel="stylesheet" href="/odsh_header.css?refresh={{ range(1,10000) | random }}" />
......
{% import 'macros/form.html' as form %} {% import 'macros/form.html' as form %}
{% resource 'odsh/bootstrap-multiselect.js' %}
{% resource 'odsh/odsh_form.js' %} {% resource 'odsh/odsh_form.js' %}
<!-- field title --> <!-- field title -->
...@@ -135,7 +134,8 @@ is_required=true,placeholder=_('Enter title')) }} ...@@ -135,7 +134,8 @@ is_required=true,placeholder=_('Enter title')) }}
<div class="span6"> <div class="span6">
<select id="field-private" name="private"> <select id="field-private" name="private">
{% for option in [('True', _('Private')), ('False', _('Public'))] %} {% for option in [('True', _('Private')), ('False', _('Public'))] %}
<option value="{{ option[0] }}" {% if option[0]==data.private|trim %}selected="selected" {% endif %}>{{ <option value="{{ option[0] }}" {% if option[0]==data.private|trim %}selected="selected" {%
endif %}>{{
option[1] }}</option> option[1] }}</option>
{% endfor %} {% endfor %}
</select> </select>
...@@ -152,9 +152,11 @@ is_required=true,placeholder=_('Enter title')) }} ...@@ -152,9 +152,11 @@ is_required=true,placeholder=_('Enter title')) }}
<div class="row-fluid"> <div class="row-fluid">
<div class="span6"> <div class="span6">
<select id="field-state" name="state"> <select id="field-state" name="state">
<option value="active" {% if data.get('state', 'none' )=='active' %} selected="selected" {% endif %}>{{ <option value="active" {% if data.get('state', 'none' )=='active' %} selected="selected" {%
endif %}>{{
_('Active') }}</option> _('Active') }}</option>
<option value="deleted" {% if data.get('state', 'none' )=='deleted' %} selected="selected" {% endif %}>{{ <option value="deleted" {% if data.get('state', 'none' )=='deleted' %} selected="selected" {%
endif %}>{{
_('Deleted') }}</option> _('Deleted') }}</option>
</select> </select>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment