[vhffs-dev] [1734] Use common file for ACL form. |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1734
Author: beuss
Date: 2011-05-14 22:29:01 +0200 (Sat, 14 May 2011)
Log Message:
-----------
Use common file for ACL form.
Modified Paths:
--------------
trunk/vhffs-panel/templates/Makefile.am
trunk/vhffs-panel/templates/group/prefs.tt
trunk/vhffs-panel/templates/web/prefs.tt
Added Paths:
-----------
trunk/vhffs-panel/templates/acl/form.tt
Modified: trunk/vhffs-panel/templates/Makefile.am
===================================================================
--- trunk/vhffs-panel/templates/Makefile.am 2011-05-14 20:28:54 UTC (rev 1733)
+++ trunk/vhffs-panel/templates/Makefile.am 2011-05-14 20:29:01 UTC (rev 1734)
@@ -109,6 +109,7 @@
bazaar/user_part.tmpl \
cron/create.tmpl \
cron/prefs.tmpl \
+ acl/form.tt \
acl/view.tt \
admin/object/edit.tt \
anonymous/account_created.tt \
Added: trunk/vhffs-panel/templates/acl/form.tt
===================================================================
--- trunk/vhffs-panel/templates/acl/form.tt (rev 0)
+++ trunk/vhffs-panel/templates/acl/form.tt 2011-05-14 20:29:01 UTC (rev 1734)
@@ -0,0 +1,10 @@
+<h2>[% 'Access rights management for this object' | i18n | html %]</h2>
+
+<form method="post" action="/acl/view.pl" accept-charset="utf-8">
+ <p>[% 'You can adjust rights on this group for each user in the VHFFS database. Please read help before manage it.' | i18n | html %]</p>
+ <input type="hidden" name="target_oid" value="[% object.get_oid %]" />
+ <p class="button" id="buttonAclAdmin">
+ <input type="submit" value="[% 'OK, go to ACL management' | i18n | html %]" />
+ </p>
+</form>
+
Modified: trunk/vhffs-panel/templates/group/prefs.tt
===================================================================
--- trunk/vhffs-panel/templates/group/prefs.tt 2011-05-14 20:28:54 UTC (rev 1733)
+++ trunk/vhffs-panel/templates/group/prefs.tt 2011-05-14 20:29:01 UTC (rev 1734)
@@ -99,16 +99,9 @@
</form>
[% END %]
-<h2>[% 'Access rights management for this object' | i18n | html %]</h2>
+[% INCLUDE 'acl/form.tt'
+ object = group %]
-<form method="post" action="../acl/view.pl" accept-charset="utf-8">
- <p>[% 'You can adjust rights on this group for each user in the VHFFS database. Please read help before manage it.' | i18n | html %]</p>
- <input type="hidden" name="target_oid" value="[% group.get_oid %]" />
- <p class="button" id="buttonAclAdmin">
- <input type="submit" value="[% 'OK, go to ACL management' | i18n | html %]" />
- </p>
-</form>
-
<h2>[% 'Delete this project' | i18n | html %]</h2>
<form method="post" action="delete.pl" accept-charset="utf-8">
Modified: trunk/vhffs-panel/templates/web/prefs.tt
===================================================================
--- trunk/vhffs-panel/templates/web/prefs.tt 2011-05-14 20:28:54 UTC (rev 1733)
+++ trunk/vhffs-panel/templates/web/prefs.tt 2011-05-14 20:29:01 UTC (rev 1734)
@@ -18,17 +18,9 @@
</form>
-<h2>[% 'Admin Rights on this object (ACL)' | i18n | html %]</h2>
-
-<form method="post" action="../acl/view.pl" accept-charset="utf-8">
- <p>[% 'You can Manage rights on this service for each user in the VHFFS database. Please read help before modifying anything.' | i18n | html %]</p>
+[% INCLUDE 'acl/form.tt'
+ object = web %]
- <input type="hidden" name="target_oid" value="[% web.get_oid %]" />
- <p class="button" id="buttonAclAdmin">
- <input type="submit" value="[% 'Ok, go to ACL admin' | i18n | html %]" />
- </p>
-</form>
-
<h2>[% 'Delete this web area' | i18n | html %]</h2>
<form method="post" action="/web/delete.pl" accept-charset="utf-8">