mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
BUGFIX: Set 'Find linked document' width. Add placeholder text to date/time fields
This commit is contained in:
parent
bac9666597
commit
005e0658e7
@ -45,7 +45,7 @@ form.small #ActionsPanel .middleColumn { margin-left: 120px; }
|
|||||||
#ActionsPanel .ss-uploadfield-files .ss-uploadfield-item-actions .ss-uploadfield-item-cancel .btn-icon-deleteLight { background-position: 0 -128px; display: inline-block; }
|
#ActionsPanel .ss-uploadfield-files .ss-uploadfield-item-actions .ss-uploadfield-item-cancel .btn-icon-deleteLight { background-position: 0 -128px; display: inline-block; }
|
||||||
#ActionsPanel .ss-uploadfield-files .ss-uploadfield-item-actions .ss-uploadfield-item-cancel .ui-button-text { display: block; position: relative; float: right; color: #555; padding: 0; padding-left: 2em; }
|
#ActionsPanel .ss-uploadfield-files .ss-uploadfield-item-actions .ss-uploadfield-item-cancel .ui-button-text { display: block; position: relative; float: right; color: #555; padding: 0; padding-left: 2em; }
|
||||||
|
|
||||||
#Form_ItemEditForm fieldset table.ss-gridfield-table { width: 508px; }
|
#Form_ItemEditForm fieldset table.ss-gridfield-table { width: 494px; }
|
||||||
#Form_ItemEditForm fieldset table.ss-gridfield-table tr th.main { min-width: 175px; }
|
#Form_ItemEditForm fieldset table.ss-gridfield-table tr th.main { min-width: 175px; }
|
||||||
#Form_ItemEditForm fieldset table.ss-gridfield-table tr th.main.col-action_SetOrderID { width: 60px; min-width: 60px; }
|
#Form_ItemEditForm fieldset table.ss-gridfield-table tr th.main.col-action_SetOrderID { width: 60px; min-width: 60px; }
|
||||||
#Form_ItemEditForm fieldset table.ss-gridfield-table tr td { white-space: normal; }
|
#Form_ItemEditForm fieldset table.ss-gridfield-table tr td { white-space: normal; }
|
||||||
|
@ -76,6 +76,18 @@
|
|||||||
|
|
||||||
//add some extra classes to the replace field containers to make it work with drag and drop uploading
|
//add some extra classes to the replace field containers to make it work with drag and drop uploading
|
||||||
this.find('.replace').closest('div.fieldgroup-field').addClass('ss-upload').addClass('ss-uploadfield');
|
this.find('.replace').closest('div.fieldgroup-field').addClass('ss-upload').addClass('ss-uploadfield');
|
||||||
|
|
||||||
|
//Add placeholder attribute to date and time fields
|
||||||
|
$('#Form_ItemEditForm_EmbargoedUntilDate-date').attr('placeholder', 'dd-mm-yyyy');
|
||||||
|
$('#Form_ItemEditForm_EmbargoedUntilDate-time').attr('placeholder', 'hh:mm:ss');
|
||||||
|
$('#Form_ItemEditForm_ExpireAtDate-date').attr('placeholder', 'dd-mm-yyyy');
|
||||||
|
$('#Form_ItemEditForm_ExpireAtDate-time').attr('placeholder', 'hh:mm:ss');
|
||||||
|
// We need to duplicate to work when adding documents
|
||||||
|
$('#Form_EditForm_EmbargoedUntilDate-date').attr('placeholder', 'dd-mm-yyyy');
|
||||||
|
$('#Form_EditForm_EmbargoedUntilDate-time').attr('placeholder', 'hh:mm:ss');
|
||||||
|
$('#Form_EditForm_ExpireAtDate-date').attr('placeholder', 'dd-mm-yyyy');
|
||||||
|
$('#Form_EditForm_ExpireAtDate-time').attr('placeholder', 'hh:mm:ss');
|
||||||
|
|
||||||
|
|
||||||
$('#Form_ItemEditForm_EmbargoedUntilDate-date').closest('.fieldholder-small').addClass('embargoDatetime').hide();
|
$('#Form_ItemEditForm_EmbargoedUntilDate-date').closest('.fieldholder-small').addClass('embargoDatetime').hide();
|
||||||
$('#Form_ItemEditForm_ExpireAtDate-date').closest('.fieldholder-small').addClass('expiryDatetime').hide();
|
$('#Form_ItemEditForm_ExpireAtDate-date').closest('.fieldholder-small').addClass('expiryDatetime').hide();
|
||||||
|
@ -229,7 +229,7 @@ form.small .field .TreeDropdownField,
|
|||||||
#Form_ItemEditForm{
|
#Form_ItemEditForm{
|
||||||
fieldset{
|
fieldset{
|
||||||
table.ss-gridfield-table{
|
table.ss-gridfield-table{
|
||||||
width: 508px;
|
width: 494px;
|
||||||
//max-width:508px;
|
//max-width:508px;
|
||||||
tr{
|
tr{
|
||||||
th.main{
|
th.main{
|
||||||
|
Loading…
Reference in New Issue
Block a user