Difference: GroupViewTemplate ( vs. 1)

Revision 1
25 Nov 2013 - Main.UnknownUser
  %TMPL:INCLUDE{"view"}%

%TMPL:DEF{"content"}%

GroupViewTemplate

%TEXT%

Members

<-- -->
No members
<-- -->
<-- -->
<-- -->
<-- -->
Log in to continue.
<-- -->
<-- -->

Related topics: AccessControl, WikiGroups

%TMPL:END%

%TMPL:DEF{"topicactionbuttons__"}%%TMPL:END%

%TMPL:DEF{Named_sections_for_INCLUDE}%

Named INCLUDE sections for use in both Group topics and the WikiGroups list

<!--
  parameters: groupname, twisty
-->
%STARTSECTION{"rendergroup"}%<!-- -->
%GROUPINFO{"%groupname%"
  expand="0"
  format="$percntIF{\"istopic '%USERSWEB%.$wikiname'\" then=\"%USERSWEB%.$wikiname\" else=\"<nop>$wikiname\"}$percnt" 
  separator=", "
  zeroresults="%IF{"'%groupname%' != 'NobodyGroup'" then="%MAKETEXT{"No  members"}%$n()"}%"
}%<!-- -->
<!-- -->%ENDSECTION{"rendergroup"}%

<!--
  parameters: groupname, twisty
-->
%STARTSECTION{"groupactions"}%%ADDTOZONE{
"head"
id="WIKIGROUP::CSS"
text="<style type='text/css' media='all'>
.wikiGroupsTable {
   width:100%;
}
.wikiGroupsTable td,
.wikiGroupsTable th {
   vertical-align:top;
}
.wikiGroupsTable td.wikiGroupsActions {
   width:300px;
}
.wikiGroupsTable .foswikiFormSteps {
   margin:5px 0 10px 0;
}
.wikiGroupsAction {
   margin:1em 0;
}
.wikiGroupsNoAction {
   color:#888;
}
</style>"
}%<!-- --><div class='wikiGroupsAction'>
%GROUPINFO{"%groupname%"
  expand="0"
  format="" 
  separator=""
  zeroresults="$percntINCLUDE{
    \"%WEB%.%TOPIC%\"
    section=\"%IF{
      "istopic '%USERSWEB%.%groupname%' AND
       $WIKINAME != 'WikiGuest' AND
       '%groupname%' != 'NobodyGroup' AND
       '%groupname%' != 'BaseGroup' AND
       '%maint%' != 'off' AND
       '%USERSWEB%.%groupname%' allows 'change'
      " 
      then="changegroup%IF{"'%twisty%' = 'off'" then="notwisty"}%" 
      else="nochange"
    }%\"
    groupname=\"%groupname%\"
    allowremove=\"0\"
    zeromembers=\"1\"
  }$percnt"
  footer="$percntINCLUDE{
    \"%WEB%.%TOPIC%\"
    section=\"%IF{
      "istopic '%USERSWEB%.%groupname%' AND 
       $WIKINAME != 'WikiGuest' AND
       '$wikiusername' != 'AdminUser' AND
       '%groupname%' != 'NobodyGroup' AND
       '%groupname%' != 'BaseGroup' AND
       '%maint%' != 'off' AND
       '%USERSWEB%.%groupname%' allows 'change'
      " 
      then="changegroup%IF{"'%twisty%' = 'off'" then="notwisty"}%" 
      else="nochange"
    }%\"
    groupname=\"%groupname%\"
    allowremove=\"1\"
  }$percnt"
}%<!-- -->
</div>
<!-- -->%ENDSECTION{"groupactions"}%

<!--
  parameters: username, groupname
-->
%STARTSECTION{"nochange"}%<!-- -->%IF{
   "'%groupname%' = 'NobodyGroup'"
   then="<span class='wikiGroupsNoAction'>%MAKETEXT{"This group should not have members."}%$n()</span>"
   else="%IF{
      "'%groupname%' = 'BaseGroup'"
      then="<span class='wikiGroupsNoAction'>%MAKETEXT{"System user list."}%$n()</span>"
      else="%IF{
         "$WIKINAME = 'WikiGuest'"
         then="%MAKETEXT{"Log in to continue."}%$n()"
         else="%IF{
            "'%USERSWEB%.%groupname%' allows 'change'"
            else="<span class='wikiGroupsNoAction'>%MAKETEXT{"Only members or admins may update group."}%$n()</span>"
         }%"
      }%"
   }%"
}%%ENDSECTION{"nochange"}%

<!--
  parameters: groupname
-->
%STARTSECTION{"changegroupnotwisty"}%<!-- -->
%IF{"'%BASEWEB%.%BASETOPIC%'='%USERSWEB%.%groupname%'"
then='
---++ %MAKETEXT{"Administration"}%
'}%
%INCLUDE{"%WEB%.%TOPIC%"
  section="group_add"
  groupname="%groupname%"
}%
%INCLUDE{"%WEB%.%TOPIC%"
  section="group_remove"
  groupname="%groupname%"
}%
<!-- -->%ENDSECTION{"changegroupnotwisty"}%

<!--
  parameters: groupname
-->
%STARTSECTION{"changegroup"}%<!-- -->
%IF{"'%BASEWEB%.%BASETOPIC%'='%USERSWEB%.%groupname%'"
then='
---++ %MAKETEXT{"Administration"}%
'}%<!-- -->
%TWISTYBUTTON{
  id="%groupname%_add"
  link="<img src='%ICONURLPATH{"useradd"}%' alt='%MAKETEXT{"Add members..."}%' title='%MAKETEXT{"Add members..."}%' /> %MAKETEXT{"Add members..."}%"
}%%TWISTYTOGGLE{id="%groupname%_add" mode="div"}%
%INCLUDE{"%WEB%.%TOPIC%"
  section="group_add"
  groupname="%groupname%"
}%%ENDTWISTYTOGGLE%
%IF{
   "$allowremove"
   then=' %TWISTYBUTTON{
  id="%groupname%_remove"
  link="<img src=\"%ICONURLPATH{"userdelete"}%\" alt=\"%MAKETEXT{"Remove members..."}%\" title=\"%MAKETEXT{"Remove members..."}%\" /> %MAKETEXT{"Remove members..."}%"
}%'}%%INCLUDE{"%WEB%.%TOPIC%"
  section="%IF{"
    istopic '%USERSWEB%.%groupname%' AND 
    not ( '%USERSWEB%.%groupname%'/preferences[name='VIEW_TEMPLATE'].value = 'GroupView' )
  " 
  then="group_upgrade"
  else="nochange" 
}%"
  groupname="%groupname%"
}%%IF{
   "$allowremove"
   then='%TWISTYTOGGLE{id="%groupname%_remove" mode="div"}%
   $percntINCLUDE{\"%WEB%.%TOPIC%\"
     section=\"group_remove\"
     groupname=\"%groupname%\"
     mode=\"div\"
   }$percnt
   %ENDTWISTYTOGGLE%'
}%<!-- -->%ENDSECTION{"changegroup"}%

<!--
  parameters: groupname
-->
%STARTSECTION{"group_upgrade"}%<!-- -->
%TWISTY{
link="<img src='%ICONURLPATH{"wrench"}%' alt='%MAKETEXT{"Upgrade group topic..."}%' title='%MAKETEXT{"Upgrade group topic..."}%' /> %MAKETEXT{"Upgrade group topic..."}%"
}%
<form action="%SCRIPTURLPATH{"manage"}%/%WEB%/%TOPIC%" method="post">
<input type="hidden" name="groupname" value="%groupname%"/>
<input type="hidden" name="action" value="addUserToGroup"/>
<input type="hidden" name="create" value="1"/>
<div class="foswikiFormSteps">
<div class="foswikiFormStep">
<h3>%MAKETEXT{"Upgrade group topic"}%</h3>
<p>%MAKETEXT{"Add user management options to this topic."}%</p>
</div>
<div class="foswikiFormStep foswikiLast">
<input class="foswikiSubmit" type="submit" value="%MAKETEXT{"Upgrade"}%" />
</div>
</div>
</form>
%ENDTWISTY%<!-- -->%ENDSECTION{"group_upgrade"}%
<!--
  parameters: groupname
-->
%STARTSECTION{"group_add"}%<!-- --><sticky>
<form action='%SCRIPTURLPATH{"manage"}%/%WEB%/%TOPIC%' method='post'> 
<input type='hidden' name='groupname' value='%groupname%'/> 
<input type='hidden' name='action' value='addUserToGroup'/>
<div class='foswikiFormSteps'>
  <div class='foswikiFormStep'>
     <h3>%MAKETEXT{"Add users or groups to this group"}%</h3>%JQREQUIRE{"textboxlist"}%
     <input type='text' name='username' value='' size='30' class='foswikiInputField jqTextboxList' autocomplete='%SCRIPTURL{"view"}%/%SYSTEMWEB%/JQueryAjaxHelper?section=user;skin=text;contenttype=application/json;baseweb=%BASEWEB%;%IF{"defined EXCLUDE" then="exclude=%EXCLUDE%"}%' />
  </div>
  <div class='foswikiFormStep foswikiLast'>
     %BUTTON{"%MAKETEXT{"Add members"}%" icon="add" type="submit"}%
     %CLEAR%
  </div>
</div>
</form>
</sticky>
%ENDSECTION{"group_add"}%

<!--
  parameters: groupname
-->
%STARTSECTION{"group_remove"}%<!-- -->
%GROUPINFO{
   "%groupname%"
   expand="0"
   header="<form action=\"%SCRIPTURLPATH{"manage"}%/%WEB%/%TOPIC%\" method=\"post\" >
     <input type=\"hidden\" name=\"groupname\" value=\"%groupname%\" />
     <input type=\"hidden\" name=\"action\" value=\"removeUserFromGroup\" />
     <div class=\"foswikiFormSteps\">
     <div class=\"foswikiFormStep\">
     <h3>%MAKETEXT{"Remove members from this group"}%:</h3>"
   format="<label style=\"display:block\">
      <input type=\"checkbox\" name=\"username\" value=\"$wikiname\" /> <nop>$wikiname
      </label>"
   footer="</div>
      <div class=\"foswikiFormStep foswikiLast\">
        $percntBUTTON{\"%MAKETEXT{"Remove selected members"}%\" icon=\"delete\" type=\"submit\"}$percnt
        $percntCLEAR$percnt
      </div>
      </div>
      </form>"
   separator="$n"
}%
<!-- -->%ENDSECTION{"group_remove"}%

%TMPL:END%

META PREFERENCE name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Set" value="SkinTemplateView"
 
This site is powered by FoswikiCopyright Leader.IT - Italy P.I. IT01434390223 Privacy policy & use of cookies