summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-08 10:42:01 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-08 10:42:01 +0200
commitc5505d267f510e4d56578e066189ab0033d91408 (patch)
tree08e71b860a4eab39611fef2c9900344e6e6ca861 /admin
parent51f74d021f9f302a9393af9ed6bbd75a4af45e97 (diff)
downloadnextcloud-server-c5505d267f510e4d56578e066189ab0033d91408.tar.gz
nextcloud-server-c5505d267f510e4d56578e066189ab0033d91408.zip
adjusted backend, deactivated Apps subentry
Diffstat (limited to 'admin')
-rw-r--r--admin/appinfo/app.php2
-rw-r--r--admin/css/apps.css76
-rw-r--r--admin/css/users.css3
-rw-r--r--admin/templates/app_noconn.php6
-rw-r--r--admin/templates/appsinst.php2
-rw-r--r--admin/templates/system.php8
-rw-r--r--admin/templates/users.php16
-rw-r--r--admin/users.php1
8 files changed, 20 insertions, 94 deletions
diff --git a/admin/appinfo/app.php b/admin/appinfo/app.php
index dfb9aee8159..08a36060fe3 100644
--- a/admin/appinfo/app.php
+++ b/admin/appinfo/app.php
@@ -7,6 +7,6 @@ OC_App::addAdminPage( array( "id" => "core_users", "order" => 2, "href" => OC_He
OC_App::addAdminPage( array( "id" => "core_apps", "order" => 3, "href" => OC_Helper::linkTo( "admin", "apps.php?installed" ), "name" => "Apps", "icon" => OC_Helper::imagePath( "admin", "apps.png" )));
// Add subentries for App installer
-OC_App::addNavigationSubEntry( "core_apps", array( "id" => "core_apps_get", "order" => 4, "href" => OC_Helper::linkTo( "admin", "apps.php" ), "name" => "Get new apps", "icon" => OC_Helper::imagePath( "admin", "navicon.png" )));
+//OC_App::addNavigationSubEntry( "core_apps", array( "id" => "core_apps_get", "order" => 4, "href" => OC_Helper::linkTo( "admin", "apps.php" ), "name" => "Get new apps", "icon" => OC_Helper::imagePath( "admin", "navicon.png" )));
?>
diff --git a/admin/css/apps.css b/admin/css/apps.css
index cd427a3c536..fa4dfe9f614 100644
--- a/admin/css/apps.css
+++ b/admin/css/apps.css
@@ -1,68 +1,10 @@
/* APPS TABLE */
-
-table td.date
-{
- width: 5em;
- padding: 0.5em 1em;
- text-align: right;
-}
-
-table td.version, table td.enabled, table td.disabled
-{
- padding: 0.5em 1em;
- text-align: center;
-}
-
-input[type="button"].enabled
-{
- color: #006600;
-}
-
-input[type="button"].disabled
-{
- color: #660000;
-}
-
-.preview
-{
- padding: 3px;
- text-align: left;
-}
-
-table td.date
-{
- width: 11em;
- color: #555555;
-}
-
-table td.selection, table th.selection, table td.fileaction
-{
- width: 2em;
- text-align: center;
-}
-
-table td.name a
-{
- padding: 6px;
- text-decoration: none;
- color: #555555;
-}
-
-.type
-{
- text-decoration: none;
- color: #888888;
- font-size: 0.8em;
-}
-
-.description
-{
- text-decoration: none;
- color: #666666;
- font-size: 0.9em;
-}
-
-
-input[type="button"].appbutton { padding:0.1em 1em; border:1px solid #999; font-weight:bold; font-size:0.9em; cursor:pointer; }
-input[type="button"]:hover.appbutton, form input[type="submit"]:focus { border:1px solid #999; background-color:#999; outline:0; }
-input[type="button"]:active.appbutton { outline:0; } \ No newline at end of file
+table td.date { width:5em; padding:.5em 1em; text-align:right; }
+table td.version, table td.enabled, table td.disabled { padding:.5em 1em; text-align:center; }
+.preview { padding:3px; text-align:left; }
+table td.date { width:11em; color:#555555; }
+table td.selection, table th.selection, table td.fileaction { width:2em; text-align:center; }
+table td.name a { padding:6px; text-decoration:none; color:#555555; }
+.type { text-decoration:none; color:#888888; font-size:.8em; }
+.description { text-decoration:none; color:#666666; font-size:.9em; }
+input[type="submit"].enabled { background:#aea; -moz-box-shadow:0 1px 1px #f8f8f8, 0 1px 1px #cfc inset; -webkit-box-shadow:0 1px 1px #f8f8f8, 0 1px 1px #cfc inset; box-shadow:0 1px 1px #f8f8f8, 0 1px 1px #cfc inset; }
diff --git a/admin/css/users.css b/admin/css/users.css
deleted file mode 100644
index 7f441499bd1..00000000000
--- a/admin/css/users.css
+++ /dev/null
@@ -1,3 +0,0 @@
-#usertable, #grouptable{
- margin:0px;
-} \ No newline at end of file
diff --git a/admin/templates/app_noconn.php b/admin/templates/app_noconn.php
index 70b7d9b3119..f22d3656287 100644
--- a/admin/templates/app_noconn.php
+++ b/admin/templates/app_noconn.php
@@ -1,7 +1 @@
-<?php
-/*
- * Template for Apps when can't connect to app store
- */
-?>
-<h1><?php echo $l->t( 'Apps Repository' ); ?></h1>
<h2><?php echo $l->t( 'Cannot connect to apps repository' ); ?></h2>
diff --git a/admin/templates/appsinst.php b/admin/templates/appsinst.php
index d1adb5f45a1..d205d95cc34 100644
--- a/admin/templates/appsinst.php
+++ b/admin/templates/appsinst.php
@@ -13,7 +13,7 @@
<td class="name" width="200"><?php echo($app['name']); ?></td>
<td class="version"><?php echo($app['version']); ?></td>
<td><?php echo($app['author']); ?></td>
- <td><input x-use="appenablebutton" type="button" value="<?php echo $l->t( $app['enabled'] ? 'enabled' : 'disabled' ); ?>" class="appbutton prettybutton <?php echo( $app['enabled'] ? 'enabled' : 'disabled' ); ?>" /></td>
+ <td><input x-use="appenablebutton" type="submit" value="<?php echo $l->t( $app['enabled'] ? 'enabled' : 'disabled' ); ?>" class="appbutton <?php echo( $app['enabled'] ? 'enabled' : 'disabled' ); ?>" /></td>
</tr>
<?php endforeach; ?>
</tbody>
diff --git a/admin/templates/system.php b/admin/templates/system.php
index 92ff9c836a8..bbe4d2757a3 100644
--- a/admin/templates/system.php
+++ b/admin/templates/system.php
@@ -1,8 +1,2 @@
-<?php
-/*
- * Template for admin pages
- */
-?>
-<h1><?php echo $l->t( 'Administration' ); ?></h1>
<h2><?php echo $l->t( 'System Settings' ); ?></h2>
-#TBD \ No newline at end of file
+#TBD
diff --git a/admin/templates/users.php b/admin/templates/users.php
index 6fc3e643010..79a4c712049 100644
--- a/admin/templates/users.php
+++ b/admin/templates/users.php
@@ -12,8 +12,8 @@
<tr id="createuserform">
<form id="createuserdata">
<td>
- <input x-use="createuserfield" type="text" name="username" placeholder='<?php echo $l->t( 'Name' ); ?>' />
- <input x-use="createuserfield" type="password" name="password" placeholder='<?php echo $l->t( 'Password' ); ?>' />
+ <input x-use="createuserfield" type="text" name="username" placeholder="<?php echo $l->t( 'Name' ); ?>" />
+ <input x-use="createuserfield" type="password" name="password" placeholder="<?php echo $l->t( 'Password' ); ?>" />
</td>
<td id="createusergroups">
<?php foreach($_["groups"] as $i): ?>
@@ -22,7 +22,7 @@
<?php endforeach; ?>
</td>
<td>
- <button id="createuserbutton"><?php echo $l->t( 'Create' ); ?></button>
+ <input type="submit" id="createuserbutton" value="<?php echo $l->t( 'Add user' ); ?>" />
</td>
</form>
</tr>
@@ -34,7 +34,7 @@
<td x-use="usergroups"><div x-use="usergroupsdiv"><?php if( $user["groups"] ){ echo $user["groups"]; }else{echo "&nbsp";} ?></div></td>
<td>
<?php if($user['name']!=OC_User::getUser()):?>
- <a class="removeuserbutton" href=""><?php echo $l->t( 'remove' ); ?></a>
+ <input type="submit" class="removeuserbutton" value="<?php echo $l->t( 'Remove' ); ?>" />
<?php endif;?>
</td>
</tr>
@@ -55,8 +55,8 @@
<tfoot>
<form id="creategroupdata">
<tr>
- <td><input x-use="creategroupfield" type="text" name="groupname" /></td>
- <td><button id="creategroupbutton"><?php echo $l->t( 'Create group' ); ?></button></td>
+ <td><input x-use="creategroupfield" type="text" name="groupname" placeholder="New group" /></td>
+ <td><input type="submit" id="creategroupbutton" value="<?php echo $l->t( 'Create group' ); ?>" /></td>
</tr>
</form>
</tfoot>
@@ -66,7 +66,7 @@
<td><?php echo $group["name"] ?></td>
<td>
<?php if( $group["name"] != "admin" ): ?>
- <a class="removegroupbutton" href=""><?php echo $l->t( 'remove' ); ?></a>
+ <input type="submit" class="removegroupbutton" value="<?php echo $l->t( 'remove' ); ?>" />
<?php else: ?>
&nbsp;
<?php endif; ?>
@@ -94,7 +94,7 @@
<input id="changepassworduid" type="hidden" name="username" value="" />
<?php echo $l->t( 'Force new password:' ); ?>
<input id="changepasswordpwd" type="password" name="password" value="" />
- <button id="changepasswordbutton"><?php echo $l->t( 'Set' ); ?></button>
+ <input type="submit" id="changepasswordbutton" value="<?php echo $l->t( 'Set' ); ?>" />
</form>
</span>
diff --git a/admin/users.php b/admin/users.php
index fd0b6fec01b..b87f1bb5bc8 100644
--- a/admin/users.php
+++ b/admin/users.php
@@ -29,7 +29,6 @@ if( !OC_User::isLoggedIn() || !OC_Group::inGroup( OC_User::getUser(), 'admin' ))
// We have some javascript foo!
OC_Util::addScript( "admin", "users" );
-OC_Util::addStyle( "admin", "users" );
OC_App::setActiveNavigationEntry( "core_users" );
$users = array();