diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-13 04:04:48 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-13 05:13:34 +0200 |
commit | 4a5ee765cf5030c7d92d88687e886079f6bafb1e (patch) | |
tree | 0b87acdf2f21f56dc1b97b063121899f3cae87bc /settings/templates | |
parent | 67156f87e3757fbd5e692e7d6b2209cfafc6c3cf (diff) | |
download | nextcloud-server-4a5ee765cf5030c7d92d88687e886079f6bafb1e.tar.gz nextcloud-server-4a5ee765cf5030c7d92d88687e886079f6bafb1e.zip |
merged admin, help and settings to settings
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/apps.php | 16 | ||||
-rw-r--r-- | settings/templates/help.php | 24 | ||||
-rw-r--r-- | settings/templates/personal.php (renamed from settings/templates/index.php) | 0 | ||||
-rw-r--r-- | settings/templates/users.php | 42 |
4 files changed, 82 insertions, 0 deletions
diff --git a/settings/templates/apps.php b/settings/templates/apps.php new file mode 100644 index 00000000000..025fbc4c81f --- /dev/null +++ b/settings/templates/apps.php @@ -0,0 +1,16 @@ +<ul id="leftcontent"> + <?php foreach($_['apps'] as $app):?> + <li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>"> + <?php echo $app['name'] ?> + <span class="hidden"> + <?php echo json_encode($app) ?> + </span> + </li> + <?php endforeach;?> +</ul> +<div id="rightcontent"> + <h3><strong><span class="name"><?php echo $l->t('Select an App');?></span></strong><span class="version"></span></h3> + <p class="description"></p> + <p class="hidden"><span class="licence"></span><?php echo $l->t('-licensed');?> <?php echo $l->t('by');?> <span class="author"></span></p> + <input class="enable hidden" type="submit"></input> +</div> diff --git a/settings/templates/help.php b/settings/templates/help.php new file mode 100644 index 00000000000..4cd748c3dff --- /dev/null +++ b/settings/templates/help.php @@ -0,0 +1,24 @@ +<?php if(is_null($_["kbe"])):?> + Can't connect to Q&A database +<?php else:?> + <table id="help" cellspacing="20"> + <tbody> + <?php foreach($_["kbe"] as $kb): ?> + <tr> + <td width="1"><?php if($kb["preview1"] <> "") { echo('<img class="preview" border="0" src="'.$kb["preview1"].'" />'); } ?> </a></td> + <td class="name"><p><strong><?php echo $kb["name"]; ?></strong></p><?php echo('<span class="type">'.$kb['description'].'</span>'); ?> + <?php if($kb['answer']<>'') echo('<br /><span class="type"><b>Answer:</b></span><br /><span class="type">'.$kb['answer'].'</span>');?> + </td> + </tr> + <?php endforeach; ?> + </tbody> + </table> + <?php + $url=OC_Helper::linkTo( "settings", "help.php" ).'?page='; + $pageNavi=OC_Util::getPageNavi($_['pagecount'],$_['page'],$url); + $pageNavi->printPage(); + ?> + <a target="_blank" class="prettybutton" href="http://apps.owncloud.com/knowledgebase/editquestion.php?action=new"><?php echo $l->t( 'Ask a question' ); ?></a> +<?php endif;?> + + diff --git a/settings/templates/index.php b/settings/templates/personal.php index 48c3f542018..48c3f542018 100644 --- a/settings/templates/index.php +++ b/settings/templates/personal.php diff --git a/settings/templates/users.php b/settings/templates/users.php new file mode 100644 index 00000000000..0009c85fa38 --- /dev/null +++ b/settings/templates/users.php @@ -0,0 +1,42 @@ +<?php +$allGroups=array(); +foreach($_["groups"] as $group) { + $allGroups[]=$group['name']; +} +?> + +<table data-groups="<?php echo implode(', ',$allGroups);?>"> + <tbody> + <tr id="controls"><form id="newuser"> + <th class="name"><input id="newusername" placeholder="<?php echo $l->t('Name')?>"></input></th> + <th class="password"><input type="password" id="newuserpassword" placeholder="<?php echo $l->t('Password')?>"></input></th> + <th class="groups"><select id="newusergroups" data-placeholder="groups" title="<?php echo $l->t('Groups')?>" multiple="multiple"> + <?php foreach($_["groups"] as $group): ?> + <option value="<?php echo $group['name'];?>"><?php echo $group['name'];?></option> + <?php endforeach;?> + </select></th> + <th><input type="submit" value="<?php echo $l->t('Create')?>"></input></th> + </form></tr> + <?php foreach($_["users"] as $user): ?> + <tr data-uid="<?php echo $user["name"] ?>"> + <td class="name"><?php echo $user["name"]; ?></td> + <td class="password"> + <span>●●●●●●●</span> + <img class="svg" src="<?php echo image_path('core','actions/rename')?>"/> + </td> + <td class="groups"> + <select data-username="<?php echo $user['name'] ;?>" data-user-groups="<?php echo $user['groups'] ;?>" data-placeholder="groups" title="<?php echo $l->t('Groups')?>" multiple="multiple"> + <?php foreach($_["groups"] as $group): ?> + <option value="<?php echo $group['name'];?>"><?php echo $group['name'];?></option> + <?php endforeach;?> + </select> + </td> + <td class="remove"> + <?php if($user['name']!=OC_User::getUser()):?> + <img alt="Remove" title="<?php echo $l->t('Remove')?>" class="svg" src="<?php echo image_path('core','actions/delete') ?>" /> + <?php endif;?> + </td> + </tr> + <?php endforeach; ?> + </tbody> +</table> |