From a2b02e8cf99a89c9d2b207fa66ec8d20d059edc9 Mon Sep 17 00:00:00 2001 From: Aron Carroll Date: Wed, 6 Jun 2012 09:21:13 +0100 Subject: [PATCH] [2375] Remove the group form partial --- ckan/templates/group/partials/group_form.html | 59 ------------------- 1 file changed, 59 deletions(-) delete mode 100644 ckan/templates/group/partials/group_form.html diff --git a/ckan/templates/group/partials/group_form.html b/ckan/templates/group/partials/group_form.html deleted file mode 100644 index 6381c7c7c81..00000000000 --- a/ckan/templates/group/partials/group_form.html +++ /dev/null @@ -1,59 +0,0 @@ -{% import 'macros/form.html' as form %} - -
- {% if error_summary %} -
-

{{ _('The form contains invalid entries:') }}

-
    - {% for key, error in error_summary.items() %} -
  • {{ key }}: {{ error }}
  • - {% endfor %} -
-
- {% endif %} - - {{ form.input('title', label=_('Title'), id='field-title', placeholder=_('My Group'), data=data, errors=errors, classes=['control-full']) }} - {{ form.prepend('name', label=_('URL'), prepend=h.url(controller='group', action='index') ~ '/', id='field-url', placeholder=_('my-group'), data=data, errors=errors) }} - {{ form.markdown('description', label=_('Description'), id='field-description', placeholder=_('A little information about my group...'), data=data, errors=errors) }} - {{ form.input('image_url', label=_('Image URL'), id='field-url', type='url', placeholder=_('http://example.com/my-image.jpg'), data=data, errors=errors, classes=['control-full']) }} - {% if c.is_sysadmin or c.auth_for_change_state %} - {{ form.select('state', label=_('State'), id='field-state', selected=data.state, options={active: _('Active'), deleted: _('Deleted')}, errors=errors) }} - {% endif %} - - {% if true or action == 'edit' %} - {% if data.packages %} -
- -
- {% for dataset in data.packages %} - - {% endfor %} -
-
- {% endif %} - - {% set dataset_name = 'packages__%s__name' % data.packages|length %} - {{ form.input(dataset_name, label=_('Add Dataset'), id="field-dataset", value=data[dataset_name]) }} - -
- -
-
- - -
-
-
- {% endif %} - -
- {% if action == 'edit' %} - - {% else %} - - {% endif %} -
-