fix external id fields

This commit is contained in:
Luke Pulverenti 2016-06-11 12:34:00 -04:00
parent 1204c0b459
commit efecb676cb
5 changed files with 134 additions and 154 deletions

View File

@ -510,14 +510,18 @@
var labelText = Globalize.translate('LabelDynamicExternalId').replace('{0}', idInfo.Name); var labelText = Globalize.translate('LabelDynamicExternalId').replace('{0}', idInfo.Name);
html += '<div class="inputContainer">'; html += '<div class="inputContainer">';
html += '<div style="display: flex; align-items: center;">';
var value = providerIds[idInfo.Key] || ''; var value = providerIds[idInfo.Key] || '';
html += '<div style="flex-grow:1;">';
html += '<input is="emby-input" class="txtExternalId" value="' + value + '" data-providerkey="' + idInfo.Key + '" data-formatstring="' + formatString + '" data-buttonclass="' + buttonId + '" id="' + id + '" label="' + labelText + '"/>'; html += '<input is="emby-input" class="txtExternalId" value="' + value + '" data-providerkey="' + idInfo.Key + '" data-formatstring="' + formatString + '" data-buttonclass="' + buttonId + '" id="' + id + '" label="' + labelText + '"/>';
html += '</div>';
if (formatString) { if (formatString) {
html += '<a class="clearLink ' + buttonId + '" href="#" target="_blank" data-role="none" style="float: none; width: 1.75em"><button type="button" is="paper-icon-button-light"><iron-icon icon="open-in-browser"></iron-icon></button></a>'; html += '<a class="clearLink ' + buttonId + '" href="#" target="_blank" data-role="none" style="float: none; width: 1.75em"><button type="button" is="paper-icon-button-light"><iron-icon icon="open-in-browser"></iron-icon></button></a>';
} }
html += '</div>';
html += '</div>'; html += '</div>';
} }

View File

@ -172,7 +172,6 @@
<h1> <h1>
${HeaderAlternateEpisodeNumbers} ${HeaderAlternateEpisodeNumbers}
</h1> </h1>
<div class="detailSectionContent">
<div class="inputContainer"> <div class="inputContainer">
<input is="emby-input" id="txtDvdSeasonNumber" type="number" pattern="[0-9]*" label="${LabelDvdSeasonNumber}" /> <input is="emby-input" id="txtDvdSeasonNumber" type="number" pattern="[0-9]*" label="${LabelDvdSeasonNumber}" />
</div> </div>
@ -183,13 +182,11 @@
<input is="emby-input" id="txtAbsoluteEpisodeNumber" type="number" pattern="[0-9]*" label="${LabelAbsoluteEpisodeNumber}" /> <input is="emby-input" id="txtAbsoluteEpisodeNumber" type="number" pattern="[0-9]*" label="${LabelAbsoluteEpisodeNumber}" />
</div> </div>
</div> </div>
</div>
<div class="detailSection" id="collapsibleSpecialEpisodeInfo" style="display: none;"> <div class="detailSection" id="collapsibleSpecialEpisodeInfo" style="display: none;">
<h1> <h1>
${HeaderSpecialEpisodeInfo} ${HeaderSpecialEpisodeInfo}
</h1> </h1>
<div class="detailSectionContent">
<div class="inputContainer"> <div class="inputContainer">
<input is="emby-input" id="txtAirsBeforeSeason" type="number" pattern="[0-9]*" label="${LabelAirsBeforeSeason}" /> <input is="emby-input" id="txtAirsBeforeSeason" type="number" pattern="[0-9]*" label="${LabelAirsBeforeSeason}" />
</div> </div>
@ -200,23 +197,19 @@
<input is="emby-input" id="txtAirsBeforeEpisode" type="number" pattern="[0-9]*" label="${LabelAirsBeforeEpisode}" /> <input is="emby-input" id="txtAirsBeforeEpisode" type="number" pattern="[0-9]*" label="${LabelAirsBeforeEpisode}" />
</div> </div>
</div> </div>
</div>
<div class="detailSection"> <div class="detailSection">
<h1> <h1>
${HeaderExternalIds} ${HeaderExternalIds}
</h1> </h1>
<div class="detailSectionContent">
<div class="externalIds editorFieldset"> <div class="externalIds editorFieldset">
</div> </div>
</div> </div>
</div>
<div class="detailSection" id="collapsibleDisplaySettings" style="display:none;"> <div class="detailSection" id="collapsibleDisplaySettings" style="display:none;">
<h1> <h1>
${HeaderDisplaySettings} ${HeaderDisplaySettings}
</h1> </h1>
<div class="detailSectionContent">
<div id="fldSourceType" style="display: none;" class="fldDisplaySetting inputContainer"> <div id="fldSourceType" style="display: none;" class="fldDisplaySetting inputContainer">
<input is="emby-input" id="txtDisplayMediaType" type="text" label="${LabelTreatImageAs}" /> <input is="emby-input" id="txtDisplayMediaType" type="text" label="${LabelTreatImageAs}" />
</div> </div>
@ -224,7 +217,6 @@
<select is="emby-select" id="selectDisplayOrder" label="${LabelDisplayOrder}"></select> <select is="emby-select" id="selectDisplayOrder" label="${LabelDisplayOrder}"></select>
</div> </div>
</div> </div>
</div>
<div id="countriesCollapsible" class="editableListviewContainer" style="display: none; margin-top: 3em;"> <div id="countriesCollapsible" class="editableListviewContainer" style="display: none; margin-top: 3em;">
<h1 style="margin:.6em 0;vertical-align:middle;display:inline-block;"> <h1 style="margin:.6em 0;vertical-align:middle;display:inline-block;">

View File

@ -1246,10 +1246,6 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
max-width: 700px; max-width: 700px;
} }
.userProfileSettingsForm .detailSectionContent {
padding: 0 .5em;
}
@media all and (max-width: 700px) { @media all and (max-width: 700px) {
.userProfileSettingsForm .detailSection { .userProfileSettingsForm .detailSection {

View File

@ -8,7 +8,6 @@
${HeaderHomePage} ${HeaderHomePage}
</h1> </h1>
<div class="detailSectionContent">
<br /> <br />
<div> <div>
<label for="selectHomeSection1" class="selectLabel">${LabelHomePageSection1}</label> <label for="selectHomeSection1" class="selectLabel">${LabelHomePageSection1}</label>
@ -69,13 +68,11 @@
</select> </select>
</div> </div>
</div> </div>
</div>
<div class="detailSection"> <div class="detailSection">
<h1> <h1>
${HeaderMyViews} ${HeaderMyViews}
</h1> </h1>
<div class="detailSectionContent">
<div> <div>
<p>${LabelSelectFolderGroups}</p> <p>${LabelSelectFolderGroups}</p>
<div class="folderGroupList"></div> <div class="folderGroupList"></div>
@ -93,18 +90,15 @@
<div class="fieldDescription paperCheckboxFieldDescription">${LabelDisplayCollectionsViewHelp}</div> <div class="fieldDescription paperCheckboxFieldDescription">${LabelDisplayCollectionsViewHelp}</div>
</div> </div>
</div> </div>
</div>
<div class="detailSection"> <div class="detailSection">
<h1> <h1>
${HeaderViewOrder} ${HeaderViewOrder}
</h1> </h1>
<div class="detailSectionContent">
<p>${LabelSelectUserViewOrder}</p> <p>${LabelSelectUserViewOrder}</p>
<div class="paperList viewOrderList"> <div class="paperList viewOrderList">
</div> </div>
</div>
</div> </div>
@ -112,7 +106,6 @@
<h1> <h1>
${HeaderLatestItems} ${HeaderLatestItems}
</h1> </h1>
<div class="detailSectionContent">
<p>${LabelSelectLastestItemsFolders}</p> <p>${LabelSelectLastestItemsFolders}</p>
<div class="latestItemsList"> <div class="latestItemsList">
@ -120,7 +113,6 @@
<br /> <br />
<paper-checkbox class="chkHidePlayedFromLatest">${OptionHideWatchedContentFromLatestMedia}</paper-checkbox> <paper-checkbox class="chkHidePlayedFromLatest">${OptionHideWatchedContentFromLatestMedia}</paper-checkbox>
</div>
</div> </div>
<button is="emby-button" type="submit" class="raised submit block btnSave hide"><iron-icon icon="check"></iron-icon><span>${ButtonSave}</span></button> <button is="emby-button" type="submit" class="raised submit block btnSave hide"><iron-icon icon="check"></iron-icon><span>${ButtonSave}</span></button>

View File

@ -19,7 +19,6 @@
<form class="adminUpdatePasswordForm passwordSection" style="display:none;margin: 0 auto 2em;"> <form class="adminUpdatePasswordForm passwordSection" style="display:none;margin: 0 auto 2em;">
<div class="detailSection"> <div class="detailSection">
<div class="detailSectionContent">
<div id="fldCurrentPassword" style="display: none;" class="inputContainer"> <div id="fldCurrentPassword" style="display: none;" class="inputContainer">
<input is="emby-input" type="password" id="txtCurrentPassword" label="${LabelCurrentPassword}" autocomplete="off" /> <input is="emby-input" type="password" id="txtCurrentPassword" label="${LabelCurrentPassword}" autocomplete="off" />
</div> </div>
@ -37,7 +36,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</form> </form>
<br /> <br />
<form class="adminLocalAccessForm localAccessSection" style="margin: 0 auto;"> <form class="adminLocalAccessForm localAccessSection" style="margin: 0 auto;">
@ -45,7 +43,6 @@
<div class="detailSectionHeader"> <div class="detailSectionHeader">
${HeaderEasyPinCode} ${HeaderEasyPinCode}
</div> </div>
<div class="detailSectionContent">
<br /> <br />
<div>${EasyPasswordHelp}</div> <div>${EasyPasswordHelp}</div>
<br /> <br />
@ -63,7 +60,6 @@
<button is="emby-button" type="button" id="btnResetEasyPassword" class="raised cancel block hide" onclick="UpdatePasswordPage.resetEasyPassword();"><iron-icon icon="lock"></iron-icon><span>${ButtonResetEasyPassword}</span></button> <button is="emby-button" type="button" id="btnResetEasyPassword" class="raised cancel block hide" onclick="UpdatePasswordPage.resetEasyPassword();"><iron-icon icon="lock"></iron-icon><span>${ButtonResetEasyPassword}</span></button>
</div> </div>
</div> </div>
</div>
</form> </form>
</div> </div>
</div> </div>