diff --git a/kallithea/public/css/style.css b/kallithea/public/css/style.css --- a/kallithea/public/css/style.css +++ b/kallithea/public/css/style.css @@ -1227,9 +1227,11 @@ div.label-summary label { padding: 7px 7px 6px; } +input[readonly], input.disabled { background-color: #F5F5F5 !important; } + #content div.box div.form div.fields div.field div.input input.small { width: 30%; } diff --git a/kallithea/templates/admin/my_account/my_account_profile.html b/kallithea/templates/admin/my_account/my_account_profile.html --- a/kallithea/templates/admin/my_account/my_account_profile.html +++ b/kallithea/templates/admin/my_account/my_account_profile.html @@ -20,11 +20,9 @@ ${h.form(url('my_account'), method='post <% readonly = None %> - <% disabled = "" %>
%if c.user.extern_type != c.EXTERN_TYPE_INTERNAL: <% readonly = "readonly" %> - <% disabled = " disabled" %> ${_('Your user is in an external Source of Record; some details cannot be managed here')}. %endif
@@ -32,7 +30,7 @@ ${h.form(url('my_account'), method='post
- ${h.text('username',class_='medium%s' % disabled, readonly=readonly)} + ${h.text('username',class_='medium', readonly=readonly)}
diff --git a/kallithea/templates/admin/settings/settings_vcs.html b/kallithea/templates/admin/settings/settings_vcs.html --- a/kallithea/templates/admin/settings/settings_vcs.html +++ b/kallithea/templates/admin/settings/settings_vcs.html @@ -64,7 +64,7 @@ ${h.form(url('admin_settings'), method='
- ${h.text('paths_root_path',size=60,readonly="readonly", class_="disabled")} + ${h.text('paths_root_path',size=60,readonly="readonly")}
@@ -74,7 +74,7 @@ ${h.form(url('admin_settings'), method='
%else: ## form still requires this but we cannot internally change it anyway - ${h.hidden('paths_root_path',size=30,readonly="readonly", class_="disabled")} + ${h.hidden('paths_root_path',size=30,readonly="readonly")} %endif
${h.submit('save',_('Save Settings'),class_="btn")} @@ -90,7 +90,6 @@ ${h.form(url('admin_settings'), method=' $('#path_unlock_icon').removeClass('icon-lock'); $('#path_unlock_icon').addClass('icon-lock-open-alt'); $('#paths_root_path').removeAttr('readonly'); - $('#paths_root_path').removeClass('disabled'); }); }); diff --git a/kallithea/templates/admin/users/user_edit_profile.html b/kallithea/templates/admin/users/user_edit_profile.html --- a/kallithea/templates/admin/users/user_edit_profile.html +++ b/kallithea/templates/admin/users/user_edit_profile.html @@ -18,12 +18,10 @@ ${h.form(url('update_user', id=c.user.us
<% readonly = None %> - <% disabled = "" %>
%if c.user.extern_type != c.EXTERN_TYPE_INTERNAL:
<% readonly = "readonly" %> - <% disabled = " disabled" %> ${_('This user is in an external Source of Record (%s); some details cannot be managed here.' % c.user.extern_type)}.
%endif @@ -33,7 +31,7 @@ ${h.form(url('update_user', id=c.user.us
- ${h.text('username',class_='medium%s' % disabled, readonly=readonly)} + ${h.text('username',class_='medium', readonly=readonly)}
@@ -51,7 +49,7 @@ ${h.form(url('update_user', id=c.user.us
- ${h.text('extern_type',class_='medium disabled',readonly="readonly")} + ${h.text('extern_type',class_='medium',readonly="readonly")}
@@ -60,7 +58,7 @@ ${h.form(url('update_user', id=c.user.us
- ${h.text('extern_name',class_='medium disabled',readonly="readonly")} + ${h.text('extern_name',class_='medium',readonly="readonly")}
@@ -69,7 +67,7 @@ ${h.form(url('update_user', id=c.user.us
- ${h.password('new_password',class_='medium%s' % disabled,readonly=readonly)} + ${h.password('new_password',class_='medium',readonly=readonly)}
@@ -78,7 +76,7 @@ ${h.form(url('update_user', id=c.user.us
- ${h.password('password_confirmation',class_="medium%s" % disabled,readonly=readonly)} + ${h.password('password_confirmation',class_="medium",readonly=readonly)}