Author: sevein
Date: Fri Sep 30 16:09:02 2011
New Revision: 9897
Log:
Simplify admin-info box markup
Modified:
trunk/apps/qubit/modules/informationobject/templates/_adminInfo.php
trunk/css/form.css
trunk/plugins/qtTrilliumPlugin/css/less/_misc.less
Modified: trunk/apps/qubit/modules/informationobject/templates/_adminInfo.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/_adminInfo.php Fri Sep
30 15:58:43 2011 (r9896)
+++ trunk/apps/qubit/modules/informationobject/templates/_adminInfo.php Fri Sep
30 16:09:02 2011 (r9897)
@@ -1,25 +1,24 @@
-<div class="admin-info">
- <table>
- <tr>
- <td>
- <?php echo $form->publicationStatus->label(__('Publication
status'))->renderRow() ?>
- </td><td>
+<fieldset class="collapsible collapsed" id="adminInfoArea">
- <h3><?php echo __('Source language') ?></h3>
+ <legend><?php echo __('Administration area') ?></legend>
- <?php if (isset($resource->sourceCulture)): ?>
- <?php if ($sf_user->getCulture() == $resource->sourceCulture): ?>
- <?php echo format_language($resource->sourceCulture) ?>
- <?php else: ?>
- <div class="default-translation">
- <?php echo link_to(format_language($resource->sourceCulture),
array('sf_culture' => $resource->sourceCulture) +
$sf_request->getParameterHolder()->getAll()) ?>
- </div>
- <?php endif; ?>
+ <?php echo $form->publicationStatus->label(__('Publication
status'))->renderRow() ?>
+
+ <div class="field">
+ <h3><?php echo __('Source language') ?></h3>
+ <div>
+ <?php if (isset($resource->sourceCulture)): ?>
+ <?php if ($sf_user->getCulture() == $resource->sourceCulture): ?>
+ <?php echo format_language($resource->sourceCulture) ?>
<?php else: ?>
- <?php echo format_language($sf_user->getCulture()) ?>
+ <div class="default-translation">
+ <?php echo link_to(format_language($resource->sourceCulture),
array('sf_culture' => $resource->sourceCulture) +
$sf_request->getParameterHolder()->getAll()) ?>
+ </div>
<?php endif; ?>
+ <?php else: ?>
+ <?php echo format_language($sf_user->getCulture()) ?>
+ <?php endif; ?>
+ </div>
+ </div>
- </td>
- </tr>
- </table>
-</div>
+</fieldset>
Modified: trunk/css/form.css
==============================================================================
--- trunk/css/form.css Fri Sep 30 15:58:43 2011 (r9896)
+++ trunk/css/form.css Fri Sep 30 16:09:02 2011 (r9897)
@@ -69,32 +69,6 @@
list-style-image: url(../images/delete.png);
}
-/*********************************************************
- ADMIN INFO
-**********************************************************/
-
-.admin-info {
- background-color: #A0A9BC;
- border: 3px solid #999;
- width: 500px;
- padding: 4px;
-}
-
-.admin-info table {
- border-collapse: separate;
- width: 100%;
- margin: 0;
- padding: 0;
-}
-
-.admin-info .form-item label {
- color: #494949;
-}
-
-.admin-info .form-item {
- margin: 0;
-}
-
span.form-required {
/* Reset garland style */
Modified: trunk/plugins/qtTrilliumPlugin/css/less/_misc.less
==============================================================================
--- trunk/plugins/qtTrilliumPlugin/css/less/_misc.less Fri Sep 30 15:58:43
2011 (r9896)
+++ trunk/plugins/qtTrilliumPlugin/css/less/_misc.less Fri Sep 30 16:09:02
2011 (r9897)
@@ -321,45 +321,6 @@
}
- .admin-info {
-
- width: auto;
- background-color: White;
- .border-radius(4px);
- border: 1px solid @grayLighter;
-
- table {
-
- border: 0;
-
- tr {
-
- td {
-
- border: 0;
- width: 50%;
- text-align: left;
-
- div {
-
- padding: 0;
-
- }
-
- }
-
- &:hover {
-
- background-color: inherit !important;
-
- }
-
- }
-
- }
-
- }
-
ul.multiInput,
div.yui-ac > ul {
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.