Exemplo n.º 1
0
<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title"><?php 
echo $editing ? "Edit" : "Create";
?>
 API User</h3>
	</div>
	<div class="panel-body">
		<?php 
echo FormHelpers::getFormCheckInput(1, "Enabled", "enabled", $form['enabled'] === "y", $formErrors);
?>
		<?php 
echo FormHelpers::getFormTxtInput(1, "Owner", "owner", $form['owner'], $formErrors);
?>
		<?php 
echo FormHelpers::getFormTxtInput(1, "Key", "key", $form['key'], $formErrors);
?>
		<?php 
echo FormHelpers::getFormTxtAreaInput(1, "Information (Optional)", "information", $form['information'], $formErrors);
?>
		<?php 
echo FormHelpers::getFormCheckInput(1, "Can View VOD Uris", "can-view-vod-uris", $form['can-view-vod-uris'] === "y", $formErrors);
?>
		<?php 
echo FormHelpers::getFormCheckInput(1, "Can View Stream Uris", "can-view-stream-uris", $form['can-view-stream-uris'] === "y", $formErrors);
?>
		<?php 
echo FormHelpers::getFormCheckInput(1, "Can Use Webhooks", "can-use-webhooks", $form['can-use-webhooks'] === "y", $formErrors);
?>
	</div>
	<div class="panel-footer clearfix">
Exemplo n.º 2
0
		<?php 
echo FormHelpers::getAjaxSelectInput(1, "Show (Optional)", "show-id", $form['show-id'], $formErrors, $seriesAjaxSelectDataUri, $additionalForm['showItemText'], "form-show");
?>
		<div class="series-no-container">
			<?php 
echo FormHelpers::getFormTxtInput(1, "Series Number", "series-no", $form['series-no'], $formErrors, "number");
?>
		</div>
		<?php 
echo FormHelpers::getFormTxtInput(1, "Name (Optional If Part Of Series)", "name", $form['name'], $formErrors);
?>
		<?php 
echo FormHelpers::getFormTxtAreaInput(1, "Description (Optional)", "description", $form['description'], $formErrors);
?>
		<?php 
echo FormHelpers::getFormTxtInput(1, "Custom Uri (Optional)", "custom-uri", $form['custom-uri'], $formErrors);
?>
		<?php 
echo FormHelpers::getFormUploadInput(1, $coverImageUploadPointId, "Cover Image (Optional) (Should Be 940x150)", "cover-image-id", $form['cover-image-id'], $formErrors, $additionalForm['coverImageFile']['name'], $additionalForm['coverImageFile']['size'], $additionalForm['coverImageFile']['processState'], $additionalForm['coverImageFile']['processPercentage'], $additionalForm['coverImageFile']['processMsg']);
?>
		<?php 
echo FormHelpers::getFormUploadInput(1, $sideBannersImageUploadPointId, "Side Banners Image (Optional) (Should Be 250x1400)", "side-banners-image-id", $form['side-banners-image-id'], $formErrors, $additionalForm['sideBannersImageFile']['name'], $additionalForm['sideBannersImageFile']['size'], $additionalForm['sideBannersImageFile']['processState'], $additionalForm['sideBannersImageFile']['processPercentage'], $additionalForm['sideBannersImageFile']['processMsg']);
?>
		<?php 
echo FormHelpers::getFormUploadInput(1, $sideBannersFillImageUploadPointId, "Side Banners Fill Image (Optional) (Should Be 250x1400)", "side-banners-fill-image-id", $form['side-banners-fill-image-id'], $formErrors, $additionalForm['sideBannersFillImageFile']['name'], $additionalForm['sideBannersFillImageFile']['size'], $additionalForm['sideBannersFillImageFile']['processState'], $additionalForm['sideBannersFillImageFile']['processPercentage'], $additionalForm['sideBannersFillImageFile']['processMsg']);
?>
		<?php 
echo FormHelpers::getFormUploadInput(1, $coverArtUploadPointId, "Cover Art (Optional) (Should Be 16:9)", "cover-art-id", $form['cover-art-id'], $formErrors, $additionalForm['coverArtFile']['name'], $additionalForm['coverArtFile']['size'], $additionalForm['coverArtFile']['processState'], $additionalForm['coverArtFile']['processPercentage'], $additionalForm['coverArtFile']['processMsg']);
?>
		<?php 
echo FormHelpers::getFormDateInput(1, "Scheduled Publish Time (Optional)", "publish-time", $form['publish-time'], $formErrors);
Exemplo n.º 3
0
            ?>
</p>
		<?php 
        }
        ?>
		<?php 
    } else {
        ?>
		<p><button class="btn btn-default" type="button" disabled>Login With Cosign (Currently Unavailable)</button></p>
		<?php 
    }
    ?>
		<h3>Login With Username and Password</h3>
		<p>Login with a username and password assigned to you for this control panel. <strong>This is not your university login.</strong></p>
		<?php 
    echo FormHelpers::getFormTxtInput(1, "Username", "user", $form['user'], $formErrors);
    ?>
		<?php 
    echo FormHelpers::getFormPassInput(1, "Password", "pass", $form['pass'], $formErrors);
    ?>
		<p><?php 
    echo FormHelpers::getFormSubmitButton(1, "Login", "", true);
    ?>
</p>
		<?php 
} else {
    ?>
		<?php 
    if ($accountDisabled) {
        ?>
		<p>You are logged in but your account is currently disabled. Please contact an admin.</p>
Exemplo n.º 4
0
echo FormHelpers::getFormCheckInput(1, "Enabled", "stream-enabled", $form['stream-enabled'] === "y", $formErrors);
?>
							<?php 
echo FormHelpers::getButtonGroupInput(1, "Current Status", "stream-state", $form['stream-state'], $formErrors, true, $additionalForm['streamStateButtonsData']);
?>
							<?php 
echo FormHelpers::getFormCheckInput(1, "Being Recorded For VOD", "stream-being-recorded", $form['stream-being-recorded'] === "y", $formErrors);
?>
							<?php 
echo FormHelpers::getFormTxtAreaInput(1, "Information Message (Shown When Not Live) (Optional)", "stream-info-msg", $form['stream-info-msg'], $formErrors);
?>
							<?php 
echo FormHelpers::getFormSelectInput(1, "Stream", "stream-stream-id", $form['stream-stream-id'], $streamOptions, $formErrors);
?>
							<?php 
echo FormHelpers::getFormTxtInput(1, "External Stream Page Url (Optional)", "stream-external-stream-url", $form['stream-external-stream-url'], $formErrors);
?>
						</div>
					</div>
				</div>
			</div>
		</div>
		<?php 
echo FormHelpers::getFormGroupStart("related-items", $formErrors);
?>
<label class="control-label">Related Media Items</label><div class="form-control form-related-items" data-initialdata="<?php 
echo e($additionalForm['relatedItemsInitialData']);
?>
"></div><?php 
echo FormHelpers::getFormHiddenInput(1, "related-items", $additionalForm['relatedItemsInput']);
echo FormHelpers::getErrMsgHTML($formErrors, "related-items");
Exemplo n.º 5
0
<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title"><?php 
echo $editing ? "Edit" : "Create";
?>
 Live Stream</h3>
	</div>
	<div class="panel-body">
		<?php 
echo FormHelpers::getFormCheckInput(1, "Live Now", "enabled", $form['enabled'] === "y", $formErrors);
?>
		<?php 
echo FormHelpers::getFormCheckInput(1, "Show As Livestream On Site", "shownAsLivestream", $form['shownAsLivestream'], $formErrors);
?>
		<?php 
echo FormHelpers::getFormTxtInput(1, "Name", "name", $form['name'], $formErrors);
?>
		<?php 
echo FormHelpers::getFormTxtAreaInput(1, "Description (Optional)", "description", $form['description'], $formErrors);
?>
		<?php 
echo FormHelpers::getFormUploadInput(1, $coverArtUploadPointId, "Cover Art (Optional) (Should Be 16:9)", "cover-art-id", $form['cover-art-id'], $formErrors, $additionalForm['coverArtFile']['name'], $additionalForm['coverArtFile']['size'], $additionalForm['coverArtFile']['processState'], $additionalForm['coverArtFile']['processPercentage'], $additionalForm['coverArtFile']['processMsg']);
?>
		<?php 
echo FormHelpers::getFormGroupStart("urls", $formErrors);
?>
<label class="control-label">Urls and Qualities</label><div class="form-control form-urls" data-initialdata="<?php 
echo e($additionalForm['urlsInitialData']);
?>
"></div><?php 
echo FormHelpers::getFormHiddenInput(1, "urls", $additionalForm['urlsInput']);