Skip to content

Commit

Permalink
Strip views/admin/capedit.tt
Browse files Browse the repository at this point in the history
Also fix filename in header comment

Fixes #1311
  • Loading branch information
pauamma committed Mar 23, 2015
1 parent 65f58ce commit e6bf410
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 5 additions & 5 deletions views/admin/capedit.tt
@@ -1,4 +1,4 @@
[%# admin/rename.tt
[%# admin/capedit.tt

Admin page for capability class management

Expand All @@ -25,13 +25,13 @@ the same terms as Perl itself. For a copy of the license, please reference
[% END %]

<form method="get">
<p>Modify capabilities for user: <input name='user' maxlength='25' size='25'> <input type='submit' value="Load"></p>
<p>[% '.modify.user' | ml %] <input name='user' maxlength='25' size='25'> <input type='submit' value="[% '.btn.load' | ml | html %]"></p>
</form>

[% IF u %]
<h2><a href="capedit">&lt;&lt;</a> editing user [% u.ljuser_display %]</h2>
<h2><a href="capedit">&lt;&lt;</a> [% '.edit.user' | ml( user=u.ljuser_display ) %]</h2>

[% IF save %]<h4>Changes to [% u.display_name %] have been saved!</h4>[% END %]
[% IF save %]<h4>[% '.saved.user' | ml( name= u.display_name ) %]</h4>[% END %]

<form method="post">
[% dw.form_auth %]
Expand All @@ -43,7 +43,7 @@ the same terms as Perl itself. For a copy of the license, please reference
<label for="class_[% cap.n %]">[% cap.name %]</label>
[% IF cap.on %]</strong>[% END %]
[% END %]
<p><input type="submit" value="Save"></p>
<p><input type="submit" value="[% '.btn.save' | ml | html %]"></p>
</form>
[% END %]
<p>[%- '.note1' | ml(payments = "href='/admin/pay'", priv = "href='/admin/priv/?priv=payments'") -%]</p>
10 changes: 10 additions & 0 deletions views/admin/capedit.tt.text
Expand Up @@ -3,6 +3,16 @@

.admin.text=For editing user capabilities.

.btn.load=Load

.btn.save=Save

.edit.user=editing user [[user]]

.modify.user=Modify capabilities for user:

.note1=Note: to change a user's status, you should use the <a [[payments]]>Payment Managements tool</a> instead. This requires you to have the 'payments' privilege so you may need to <a [[priv]]>grant it to yourself first</a>.

.saved.user=Changes to [[name]] have been saved!

.title=Capability Class Management

0 comments on commit e6bf410

Please sign in to comment.