Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the Copy button to the full view in the Administration Interface #1413

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions design/admin/stylesheets/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ optgroup
font-style: normal;
}

input.button, button, input.defaultbutton, input.button-disabled
input.button, button, input.defaultbutton, input.button-disabled, a.button, a.button-disabled
{
font-family: Verdana, Arial, Helvetica, sans-serif;
text-align: center;
Expand All @@ -333,17 +333,18 @@ input.button, button, input.defaultbutton, input.button-disabled
font-weight: normal;
padding-left: 0.25em;
padding-right: 0.25em;
text-decoration: none;
}

input.defaultbutton
input.defaultbutton, button.defaultbutton
{
font-weight: bold;
padding-left: 0.45em;
padding-right: 0.45em;
color: #094564;
}

input.button-disabled, input.button[disabled="disabled"]
input.button-disabled, input.button[disabled="disabled"], a.button-disabled, a.button[disabled="disabled"]
{
cursor: default;
color: #888;
Expand Down Expand Up @@ -680,7 +681,7 @@ table.multioption
{
font-size:1em;
}
table.multioption input.button
table.multioption input.button, table.multioption a.button
{
margin-left:0;
}
Expand Down
9 changes: 5 additions & 4 deletions design/admin/stylesheets/pagelayout.css
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,11 @@ ul.leftmenu-items li.current a
#widthcontrol-handler
{
position: absolute;
right: 20px;
top: 0;
right: -30px;
top:-20px;
bottom: 0; /* strech div to full width of relative box */
width: 10px;
height: 5000px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these changes really relevant here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrerom good catch, probably came from somewhere else, going to update this PR during the weeekend and remove those changes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😃

cursor: col-resize;
z-index:11;
/* background: #f8f8f8;*/
Expand Down Expand Up @@ -957,14 +958,14 @@ p.table-preferences a
text-decoration: none;
}

input.button, input.defaultbutton, input.button-disabled
input.button, input.defaultbutton, input.button-disabled, a.button, a.button-disabled
{
width: auto;
overflow: visible;
padding: 0.1em 0.5em;
}

input.button:hover
input.button:hover, a.button:hover
{
border: 1px solid #999;
}
Expand Down
12 changes: 6 additions & 6 deletions design/admin/stylesheets/theme/rounded.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ a.show-hide-tabs:hover
height:25px;
}

.controlbar form .button-left .block input.button, .controlbar form .button-left .block input.button-disabled
.controlbar form .button-left .block input.button, .controlbar form .button-left .block input.button-disabled, .controlbar form .button-left .block a.button, .controlbar form .button-left .block a.button-disabled
{
margin-top: -3px;
}
Expand Down Expand Up @@ -240,7 +240,7 @@ a.show-hide-tabs:hover
border-top: 1px dashed #ccc;
font-size:1.5em;
}
.box-header select, .box-header input.button
.box-header select, .box-header input.button, .box-header a.button
{
margin-top:7px;
font-size:13px;
Expand Down Expand Up @@ -319,7 +319,7 @@ p.table-preferences :last-child
border-right: 0px;
}

input.button, input.defaultbutton, input.button-disabled
input.button, input.defaultbutton, input.button-disabled, a.button, a.button-disabled
{
color: #44484d;
background: #fff;
Expand All @@ -335,12 +335,12 @@ input.button, input.defaultbutton, input.button-disabled
transition: all 300ms ease;
}

input.defaultbutton, input.button-disabled, input.button[disabled="disabled"]
input.defaultbutton, input.button-disabled, input.button[disabled="disabled"], a.button-disabled, a.button[disabled="disabled"]
{
background-color: #f5f5f5;
}

input.button:hover, input.button:focus {
input.button:hover, input.button:focus, a.button:hover, a.button:focus {
background-color: rgba(0, 0, 0, 0.1);
color: black;
}
Expand All @@ -366,7 +366,7 @@ input.defaultbutton:active {
color: #ff8300;
}

input.button-disabled, input.button[disabled="disabled"]
input.button-disabled, input.button[disabled="disabled"], a.button-disabled, a.button[disabled="disabled"]
{
color: #999;
background: #fff;
Expand Down
9 changes: 8 additions & 1 deletion design/admin/templates/node/view/full.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@
<input class="button-disabled" type="submit" name="MoveNodeButton" value="{'Move'|i18n( 'design/admin/node/view/full' )}" title="{'You do not have permission to move this item to another location.'|i18n( 'design/admin/node/view/full' )}" disabled="disabled" />
{/if}

{* Copy button. *}
{if $node.object.can_edit}
<a class="button" href={concat("content/copy/",$node.contentobject_id)|ezurl}>{'Copy'|i18n( 'design/admin/node/view/full' )}</a>
{else}
<a class="button-disabled" disabled="disabled" href="#">{'Copy'|i18n( 'design/admin/node/view/full' )}</a>
{/if}

{* Remove button. *}
{if $node.can_remove}
<input class="button" type="submit" name="ActionRemove" value="{'Remove'|i18n( 'design/admin/node/view/full' )}" title="{'Remove this item.'|i18n( 'design/admin/node/view/full' )}" />
Expand Down Expand Up @@ -134,4 +141,4 @@
</div>

</div>
</div>
</div>