From 0bc64efa4ab183d9c98334b6c4180307fef0a51b Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 16 Mar 2009 03:50:57 +0000 Subject: Thin down the scaffolding code so that all that is there is the test data creation and the packaging code. The rest ofthe functionality is either no longer required, or moved to the developer module (MPTT Tree). Also provide checking for the active user to be an admin. --- core/views/scaffold.html.php | 311 +------------------------------------------ 1 file changed, 4 insertions(+), 307 deletions(-) (limited to 'core/views/scaffold.html.php') diff --git a/core/views/scaffold.html.php b/core/views/scaffold.html.php index 028acd02..765464b5 100644 --- a/core/views/scaffold.html.php +++ b/core/views/scaffold.html.php @@ -62,65 +62,12 @@ margin-top: -.25em; } - div#activities { - margin-bottom: 1em; - } - - div.activity { - display: none; - } - - ul.tabs { - margin-left: 0; - padding: 1em 0 2px 1em; - white-space: nowrap; - border-bottom: 1px solid black; - } - - ul.tabs li { - display: inline; - list-style-type: none; - } - - ul.tabs a { - padding: 3px 10px; - color: #fff; - background-color: #036; - text-decoration: none; - } - - div#access { - margin-top: -20px; - padding: 0px; - padding-left: 20px; - } - - div#access ul.tabs a { - background-color: #830; - border: 1px solid white; - } - - ul.tabs a:hover { - background-color: #369; - } - fieldset { margin-left: 1em; + margin-bottom: 1em; padding-bottom: 0; } - div#photo_upload_wrap { - display: inline; - } - - div#photo_upload_wrap { - display: inline; - } - - tr.core td { - border-bottom: 1px solid black; - } - a { text-decoration: none; } @@ -129,11 +76,6 @@ text-decoration: underline; } - span.understate { - font-size: 70%; - font-style: italic; - } - a.allowed { color: green; font-size: 110%; @@ -144,11 +86,6 @@ font-size: 90%; } - ul#permissions ul { - margin-left: -1.5em; - list-style-type: none; - } - .gHide { display: none; } @@ -161,10 +98,6 @@ margin: 5px 0px 0px 1em; } - - - -
@@ -193,58 +126,9 @@
- - -
- - -
- -
- -
+
+
+ Generate Test Data

add: [ @@ -273,198 +157,11 @@ ] tags

- -
- Server Side Photos -
"> - - " /> -
- Album id: -
-
-
- Albums -
"> - - - -
Packaging ">Make Package
-
- - -
- - -
-
    - -
  • - name ?> - admin): ?> - id", "[x]") ?> - -
      - groups as $group): ?> -
    • - name ?> - special): ?> - id/$user->id", "[x]") ?> - -
    • - -
    • -
      id") ?>"> - -
      -
    • -
    -
  • - -
-
- Add User -
"> - - - Admin -
-
-
- -
-
    - -
  • - name ?> - special): ?> - id", "[x]") ?> - -
  • - -
-
- Add Group -
"> - - -
-
-
- -
- - - - - - -
    -
  • - (album->id ?>) - album->id}", $current->album->title) ?> - » - - - album)): ?> - album->id}", strtoupper($perm), array("class" => "allowed")) ?> - - album->id}", strtolower($perm), array("class" => "denied")) ?> - - - album->id != 1): ?> - - (album->id}", "reset") ?>) - - - - children): ?> - children) ?> - - -
  • -
- - - -
-
- - -
-
    -
  • -
  • - - (requires /usr/bin/dot from the graphviz package) -
  • - -
  • - id}", "Deepest photo") ?> - (level ?> levels deep) -
  • - - -
  • - id}", "Deepest album") ?> - (level ?> levels deep) -
  • - - -
  • - id}", "Most tagged item") ?> - (count ?> tags) -
  • - -
-
- -
-
    -
  • - -
  • -
  • - -
  • -
-
- -
-- cgit v1.2.3