?> <?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"> <div class="pull-left"> <?php echo FormHelpers::getFormSubmitButton(1, ($editing ? "Update" : "Create") . " API User", "", true, ""); ?> </div> <div class="pull-right"> <a type="button" class="btn btn-default" data-confirm="Are you sure you want to cancel?" href="<?php echo e($cancelUri); ?> ">Cancel</a> </div> </div> </div>
echo FormHelpers::getFormHiddenInput(1, "playlist-content", $additionalForm['playlistContentInput']); echo FormHelpers::getErrMsgHTML($formErrors, "playlist-content"); ?> </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"); ?> </div> </div> <div class="panel-footer clearfix"> <div class="pull-left"> <?php echo FormHelpers::getFormSubmitButton(1, ($editing ? "Update" : "Create") . " Playlist", "", true, ""); ?> </div> <div class="pull-right"> <a type="button" class="btn btn-default" data-confirm="Are you sure you want to cancel?" href="<?php echo e($cancelUri); ?> ">Cancel</a> </div> </div> </div>
<p>You are logged out.</p> <p><a class="btn btn-info" href="<?php echo e(URL::to("/admin/login")); ?> ">Click Here To Login</a></p> <?php } ?> <?php if ($showCosignLogoutButton) { ?> <p>You are <?php echo !$loggedIn ? " still" : "also"; ?> logged into cosign.</p> <?php if ($loggedIn) { ?> <p><em>Logging out of cosign will not log you out of the control panel.</em></p> <?php } ?> <p><?php echo FormHelpers::getFormSubmitButton(2, "Click Here To Log Out Of Cosign", "", true); ?> </p> <?php } ?> </div> </div>
<div class="panel-heading"> <h3 class="panel-title">Edit Site User</h3> </div> <div class="panel-body"> <?php echo FormHelpers::getReadOnlyTxtInput("Name", $additionalForm['name']); ?> <?php echo FormHelpers::getReadOnlyTxtInput("First Name", $additionalForm['firstName']); ?> <?php echo FormHelpers::getReadOnlyTxtInput("Last Name", $additionalForm['lastName']); ?> <?php echo FormHelpers::getFormCheckInput(1, "Banned", "banned", $form['banned'] === "y", $formErrors); ?> </div> <div class="panel-footer clearfix"> <div class="pull-left"> <?php echo FormHelpers::getFormSubmitButton(1, "Update Site User", "", true, ""); ?> </div> <div class="pull-right"> <a type="button" class="btn btn-default" data-confirm="Are you sure you want to cancel?" href="<?php echo e($cancelUri); ?> ">Cancel</a> </div> </div> </div>
} 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> <?php } else { ?> <p>You are logged in!</p> <p><a href="<?php echo e(URL::to("/admin/dashboard"));
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']); echo FormHelpers::getErrMsgHTML($formErrors, "urls"); ?> </div> </div> <div class="panel-footer clearfix"> <div class="pull-left"> <?php echo FormHelpers::getFormSubmitButton(1, ($editing ? "Update" : "Create") . " Live Stream", "", true, ""); ?> </div> <div class="pull-right"> <a type="button" class="btn btn-default" data-confirm="Are you sure you want to cancel?" href="<?php echo e($cancelUri); ?> ">Cancel</a> </div> </div> </div>