openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 6cf725c6615bf72e32bec3421ed33fba488348bf
parent 53aa92f789070482a2bd2e507b9f0efc1c975a19
Author: Jan Dankert <devnull@localhost>
Date:   Tue, 16 Oct 2012 00:21:04 +0200

Falls das Veroeffentlichen deaktiviert ist, eine Warnmeldung anzeigen.

Diffstat:
themes/default/templates/file/pub.tpl.src.xml | 30++++++++++++++++++++++++++----
themes/default/templates/folder/pub.tpl.src.xml | 11+++++++++++
themes/default/templates/group/rights.tpl.src.xml | 78++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
themes/default/templates/page/pub.tpl.src.xml | 12++++++++++++
themes/default/templates/pageelement/pub.tpl.src.xml | 12++++++++++++
themes/default/templates/user/rights.tpl.src.xml | 81+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
6 files changed, 212 insertions(+), 12 deletions(-)

diff --git a/themes/default/templates/file/pub.tpl.src.xml b/themes/default/templates/file/pub.tpl.src.xml @@ -1,3 +1,25 @@ -<output xmlns="http://www.openrat.de/template" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"><dummy><form><window><row><column><newline></newline><newline></newline><newline></newline><newline></newline><newline></newline></column></row><row><column class="act"><button type="ok"></button></column></row></window></form></dummy></output>- \ No newline at end of file +<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> + + <!-- + Falls das Veroeffentlichen deaktiviert ist, eine Warnmeldung anzeigen. + --> + <if true="config:security/nopublish"> + <part class="message warn"> + <text key="GLOBAL_NOPUBLISH_DESC" class="help"></text> + </part> + </if> + + <form> + <row> + <column> + <newline></newline> + </column> + </row> + <row> + <column class="act"> + <button type="ok"></button> + </column> + </row> + </form> +</output>+ \ No newline at end of file diff --git a/themes/default/templates/folder/pub.tpl.src.xml b/themes/default/templates/folder/pub.tpl.src.xml @@ -1,5 +1,16 @@ <output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> + + <!-- + Falls das Veroeffentlichen deaktiviert ist, eine Warnmeldung anzeigen. + --> + <if true="config:security/nopublish"> + <part class="message warn"> + <text key="GLOBAL_NOPUBLISH_DESC" class="help"></text> + </part> + </if> + + <form> <group title="message:publish"> <if present="pages"> diff --git a/themes/default/templates/group/rights.tpl.src.xml b/themes/default/templates/group/rights.tpl.src.xml @@ -1,3 +1,73 @@ -<output xmlns="http://www.openrat.de/template" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"><dummy><window><list list="projects" extract="true"><row><column><group title="var:projectname"><if empty="acls"><row><column><text text="GLOBAL_NOT_FOUND"></text></column></row></if><if not="true" empty="acls"><table><row class="headline"><column class="help"><text text="GLOBAL_USER"></text></column><column class="help"><text text="GLOBAL_NAME"></text></column><column class="help"><text text="GLOBAL_LANGUAGE"></text></column><list list="show" value="t"><column class="help"><text key="var:t" prefix="acl_" suffix="_abbrev" title="message:acl_{t}"></text></column></list></row><list list="rights" key="aclid" value="acl" extract="true"><row class="data"><column><if present="groupname"><image type="group"></image><text var="groupname" maxlength="20"></text></if><if not="true" present="username"><if not="true" present="groupname"><image type="group"></image><text key="global_all"></text></if></if><set var="username"></set><set var="groupname"></set></column><column><image type="var:objecttype"></image><link action="var:objecttype" subaction="" id="var:objectid"><text var="objectname" maxlength="20" title="message:select"></text></link></column><column><text var="languagename" maxlength="20"></text></column><list list="show"><column><set var="var:list_value" value="var:bits" key="var:list_value"></set><checkbox name="var:list_value" readonly="true"></checkbox></column></list></row></list></table></if></group></column></row></list></window></dummy></output>- \ No newline at end of file +<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> + <table> + <list list="projects" extract="true"> + <row> + <column> + <group title="var:projectname"> + <if empty="acls"> + <row> + <column> + <text text="GLOBAL_NOT_FOUND"></text> + </column> + </row> + </if> + <if not="true" empty="acls"> + <table> + <row class="headline"> + <column class="help"> + <text text="GLOBAL_USER"></text> + </column> + <column class="help"> + <text text="GLOBAL_NAME"></text> + </column> + <column class="help"> + <text text="GLOBAL_LANGUAGE"></text> + </column> + <list list="show" value="t"> + <column class="help"> + <text key="var:t" prefix="acl_" suffix="_abbrev" title="message:acl_{t}"></text> + </column> + </list> + </row> + <list list="rights" key="aclid" value="acl" extract="true"> + <row class="data"> + <column> + <if present="groupname"> + <image type="group"></image> + <text var="groupname" maxlength="20"></text> + </if> + <if not="true" present="username"> + <if not="true" present="groupname"> + <image type="group"></image> + <text key="global_all"></text> + </if> + </if> + <set var="username"></set> + <set var="groupname"></set> + </column> + <column> + <image type="var:objecttype"></image> + <link action="var:objecttype" subaction="" id="var:objectid"> + <text var="objectname" maxlength="20" title="message:select"></text> + </link> + </column> + <column> + <text var="languagename" maxlength="20"></text> + </column> + <list list="show"> + <column> + <set var="var:list_value" value="var:bits" key="var:list_value"></set> + <checkbox name="var:list_value" readonly="true"></checkbox> + </column> + </list> + </row> + </list> + </table> + </if> + </group> + </column> + </row> + </list> + </table> +</output>+ \ No newline at end of file diff --git a/themes/default/templates/page/pub.tpl.src.xml b/themes/default/templates/page/pub.tpl.src.xml @@ -1,5 +1,17 @@ <output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> + + <!-- + Falls das Veroeffentlichen deaktiviert ist, eine Warnmeldung anzeigen. + --> + <if true="config:security/nopublish"> + <part class="message warn"> + <text key="GLOBAL_NOPUBLISH_DESC" class="help"></text> + </part> + </if> + + + <form> <group title="message:options"> diff --git a/themes/default/templates/pageelement/pub.tpl.src.xml b/themes/default/templates/pageelement/pub.tpl.src.xml @@ -1,5 +1,17 @@ <output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> + + <!-- + Falls das Veroeffentlichen deaktiviert ist, eine Warnmeldung anzeigen. + --> + <if true="config:security/nopublish"> + <part class="message warn"> + <text key="GLOBAL_NOPUBLISH_DESC" class="help"></text> + </part> + </if> + + + <form> <group title="message:options"> diff --git a/themes/default/templates/user/rights.tpl.src.xml b/themes/default/templates/user/rights.tpl.src.xml @@ -1,3 +1,76 @@ -<output xmlns="http://www.openrat.de/template" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"><dummy><window><list list="projects" extract="true"><row><column colspan="2"><group title="var:projectname"><if empty="acls"><part><text text="GLOBAL_NOT_FOUND"></text></part></if><if not="true" empty="acls"><table><row class="headline"><column class="help"><text text="GLOBAL_USER"></text></column><column class="help"><text text="GLOBAL_NAME"></text></column><column class="help"><text text="GLOBAL_LANGUAGE"></text></column><list list="show" value="t"><column class="help"><text key="var:t" prefix="acl_" suffix="_abbrev" title="message:acl_{t}"></text></column></list></row><list list="rights" key="aclid" value="acl" extract="true"><row class="data"><column><if present="username"><image type="user"></image><text var="username" maxlength="20"></text></if><if present="groupname"><image type="group"></image><text var="groupname" maxlength="20"></text></if><if not="true" present="username"><if not="true" present="groupname"><image type="group"></image><text key="global_all"></text></if></if><set var="username"></set><set var="groupname"></set></column><column><image type="var:objecttype"></image><link action="var:objecttype" subaction="" id="var:objectid"><text var="objectname" maxlength="20" title="message:select"></text></link></column><column><text var="languagename" maxlength="20"></text></column><list list="show"><column><set var="var:list_value" value="var:bits" key="var:list_value"></set><checkbox name="var:list_value" readonly="true"></checkbox></column></list></row></list></table></if></group></column></row></list></window></dummy></output>- \ No newline at end of file +<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> + <table> + <list list="projects" extract="true"> + + <row> + <column colspan="2"> + <group title="var:projectname"> + <if empty="acls"> + <part> + <text text="GLOBAL_NOT_FOUND"></text> + </part> + </if> + <if not="true" empty="acls"> + <table> + <row class="headline"> + <column class="help"> + <text text="GLOBAL_USER"></text> + </column> + <column class="help"> + <text text="GLOBAL_NAME"></text> + </column> + <column class="help"> + <text text="GLOBAL_LANGUAGE"></text> + </column> + <list list="show" value="t"> + <column class="help"> + <text key="var:t" prefix="acl_" suffix="_abbrev" title="message:acl_{t}"></text> + </column> + </list> + </row> + <list list="rights" key="aclid" value="acl" extract="true"> + <row class="data"> + <column> + <if present="username"> + <image type="user"></image> + <text var="username" maxlength="20"></text> + </if> + <if present="groupname"> + <image type="group"></image> + <text var="groupname" maxlength="20"></text> + </if> + <if not="true" present="username"> + <if not="true" present="groupname"> + <image type="group"></image> + <text key="global_all"></text> + </if> + </if> + <set var="username"></set> + <set var="groupname"></set> + </column> + <column> + <image type="var:objecttype"></image> + <link action="var:objecttype" subaction="" id="var:objectid"> + <text var="objectname" maxlength="20" title="message:select"></text> + </link> + </column> + <column> + <text var="languagename" maxlength="20"></text> + </column> + <list list="show"> + <column> + <set var="var:list_value" value="var:bits" key="var:list_value"></set> + <checkbox name="var:list_value" readonly="true"></checkbox> + </column> + </list> + </row> + </list> + </table> + </if> + </group> + </column> + </row> + </list> + </table> +</output>+ \ No newline at end of file