Skip to content

Commit

Permalink
Merge branch '1723-wrong-fields-in-member-edit'
Browse files Browse the repository at this point in the history
  • Loading branch information
joetsoi committed Jul 23, 2014
2 parents 922af51 + a31444a commit cd051d9
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 38 deletions.
43 changes: 24 additions & 19 deletions ckan/templates/group/member_new.html
Expand Up @@ -13,12 +13,14 @@ <h1 class="page-heading">
<form class="dataset-form form-horizontal add-member-form" method='post'>
<div class="row-fluid">
<div class="control-group control-medium">
<label class="control-label" for="username">
{{ _('Existing User') }}
</label>
<span>
{{ _('If you wish to add an existing user, search for their username below.') }}
</span>
{% if not user %}
<label class="control-label" for="username">
{{ _('Existing User') }}
</label>
<span>
{{ _('If you wish to add an existing user, search for their username below.') }}
</span>
{% endif %}
<div class="controls">
{% if user %}
<input type="hidden" name="username" value="{{ user.name }}" />
Expand All @@ -31,21 +33,24 @@ <h1 class="page-heading">
{% endif %}
</div>
</div>
<div class="add-member-or">
{{ _('or') }}
</div>
<div class="control-group control-medium">
<label class="control-label" for="email">
{{ _('New User') }}
</label>
<span>
{{ _('If you wish to invite a new user, enter their email address.') }}
</span>
<div class="controls">
<input id="email" type="text" name="email" placeholder="Email address">
{% if not user %}
<div class="add-member-or">
{{ _('or') }}
</div>
</div>
<div class="control-group control-medium">
<label class="control-label" for="email">
{{ _('New User') }}
</label>
<span>
{{ _('If you wish to invite a new user, enter their email address.') }}
</span>
<div class="controls">
<input id="email" type="text" name="email" placeholder="Email address">
</div>
</div>
{% endif %}
</div>

{% set format_attrs = {'data-module': 'autocomplete'} %}
{{ form.select('role', label=_('Role'), options=c.roles, selected=c.user_role, error='', attrs=format_attrs) }}
<div class="form-actions">
Expand Down
42 changes: 23 additions & 19 deletions ckan/templates/organization/member_new.html
Expand Up @@ -15,12 +15,14 @@ <h1 class="page-heading">
<form class="dataset-form form-horizontal add-member-form" method='post'>
<div class="row-fluid">
<div class="control-group control-medium">
<label class="control-label" for="username">
{{ _('Existing User') }}
</label>
<span>
{{ _('If you wish to add an existing user, search for their username below.') }}
</span>
{% if not user %}
<label class="control-label" for="username">
{{ _('Existing User') }}
</label>
<span>
{{ _('If you wish to add an existing user, search for their username below.') }}
</span>
{% endif %}
<div class="controls">
{% if user %}
<input type="hidden" name="username" value="{{ user.name }}" />
Expand All @@ -33,20 +35,22 @@ <h1 class="page-heading">
{% endif %}
</div>
</div>
<div class="add-member-or">
{{ _('or') }}
</div>
<div class="control-group control-medium">
<label class="control-label" for="email">
{{ _('New User') }}
</label>
<span>
{{ _('If you wish to invite a new user, enter their email address.') }}
</span>
<div class="controls">
<input id="email" type="text" name="email" placeholder="Email address">
{% if not user %}
<div class="add-member-or">
{{ _('or') }}
</div>
</div>
<div class="control-group control-medium">
<label class="control-label" for="email">
{{ _('New User') }}
</label>
<span>
{{ _('If you wish to invite a new user, enter their email address.') }}
</span>
<div class="controls">
<input id="email" type="text" name="email" placeholder="Email address">
</div>
</div>
{% endif %}
</div>
{% set format_attrs = {'data-module': 'autocomplete'} %}
{{ form.select('role', label=_('Role'), options=c.roles, selected=c.user_role, error='', attrs=format_attrs) }}
Expand Down

0 comments on commit cd051d9

Please sign in to comment.