SAAS-290: Hosted SaaS widgets + javascript code generation
Slight improvements to description as well as element positioning
This commit is contained in:
parent
1b0b124247
commit
4b09b289ce
3 changed files with 37 additions and 4 deletions
|
@ -42,7 +42,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
|
||||||
));
|
));
|
||||||
|
|
||||||
$third_party_api = new Zend_Form_Element_Radio('thirdPartyApi');
|
$third_party_api = new Zend_Form_Element_Radio('thirdPartyApi');
|
||||||
$third_party_api->setLabel('Allow Remote Websites To Access "Schedule" Info?<br> (Enable this to make front-end widgets work.)');
|
$third_party_api->setLabel('Website Widgets:');
|
||||||
$third_party_api->setMultiOptions(array("Disabled",
|
$third_party_api->setMultiOptions(array("Disabled",
|
||||||
"Enabled"));
|
"Enabled"));
|
||||||
$third_party_api->setValue(Application_Model_Preference::GetAllow3rdPartyApi());
|
$third_party_api->setValue(Application_Model_Preference::GetAllow3rdPartyApi());
|
||||||
|
|
|
@ -27,13 +27,18 @@
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
<dt id="thirdPartyApi-label" class="block-display">
|
<dt id="thirdPartyApi-label" class="block-display" style="width:140px;">
|
||||||
<label class="optional"><?php echo $this->element->getElement('thirdPartyApi')->getLabel() ?></label>
|
<label class="optional"><?php echo $this->element->getElement('thirdPartyApi')->getLabel() ?>
|
||||||
|
<span class="icecast_metadata_help_icon" id="thirdPartyApiInfo"></span>
|
||||||
|
</label>
|
||||||
|
|
||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd id="thirdPartyApi-element" class="block-display radio-inline-list">
|
<dd id="thirdPartyApi-element" class="block-display radio-inline-list">
|
||||||
<?php $i=0;
|
<?php $i=0;
|
||||||
$value = $this->element->getElement('thirdPartyApi')->getValue();
|
$value = $this->element->getElement('thirdPartyApi')->getValue();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php foreach ($this->element->getElement('thirdPartyApi')->getMultiOptions() as $radio) : ?>
|
<?php foreach ($this->element->getElement('thirdPartyApi')->getMultiOptions() as $radio) : ?>
|
||||||
<label for="thirdPartyApi-<?php echo $i ?>">
|
<label for="thirdPartyApi-<?php echo $i ?>">
|
||||||
<input type="radio" value="<?php echo $i ?>" id="thirdPartyApi-<?php echo $i ?>" name="thirdPartyApi" <?php if($i == $value){echo 'checked="checked"';}?>>
|
<input type="radio" value="<?php echo $i ?>" id="thirdPartyApi-<?php echo $i ?>" name="thirdPartyApi" <?php if($i == $value){echo 'checked="checked"';}?>>
|
||||||
|
@ -50,6 +55,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dt id="widgetCode-label" style="display:none;" class="block-display">
|
<dt id="widgetCode-label" style="display:none;" class="block-display">
|
||||||
<label class="optional" for="widgetCode"><?php echo $this->element->getElement('widgetCode')->getLabel() ?></label>
|
<label class="optional" for="widgetCode"><?php echo $this->element->getElement('widgetCode')->getLabel() ?></label>
|
||||||
</dt>
|
</dt>
|
||||||
|
|
|
@ -92,10 +92,36 @@ function setCollapsibleWidgetJsCode() {
|
||||||
$('#widgetCode-label').hide("fast");
|
$('#widgetCode-label').hide("fast");
|
||||||
$('#widgetCode-element').hide("fast");
|
$('#widgetCode-element').hide("fast");
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function createWidgetHelpDescription() {
|
||||||
|
$('#thirdPartyApiInfo').qtip({
|
||||||
|
content: {
|
||||||
|
text: "Enabling this feature will allow Airtime to " +
|
||||||
|
"provide schedule data to external widgets that can be embedded " +
|
||||||
|
"in your website. Enable this feature to reveal the embeddable " +
|
||||||
|
"code."
|
||||||
|
},
|
||||||
|
hide: {
|
||||||
|
delay: 500,
|
||||||
|
fixed: true
|
||||||
|
},
|
||||||
|
style: {
|
||||||
|
border: {
|
||||||
|
width: 0,
|
||||||
|
radius: 4
|
||||||
|
},
|
||||||
|
classes: "ui-tooltip-dark ui-tooltip-rounded"
|
||||||
|
},
|
||||||
|
position: {
|
||||||
|
my: "left bottom",
|
||||||
|
at: "right center"
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$('.collapsible-header').live('click',function() {
|
$('.collapsible-header').live('click',function() {
|
||||||
|
@ -111,4 +137,5 @@ $(document).ready(function() {
|
||||||
setConfigureMailServerListener();
|
setConfigureMailServerListener();
|
||||||
setEnableSystemEmailsListener();
|
setEnableSystemEmailsListener();
|
||||||
setCollapsibleWidgetJsCode();
|
setCollapsibleWidgetJsCode();
|
||||||
|
createWidgetHelpDescription();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue