diff options
Diffstat (limited to 'templates/main/jams/profile.html')
-rw-r--r-- | templates/main/jams/profile.html | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/templates/main/jams/profile.html b/templates/main/jams/profile.html deleted file mode 100644 index 40d22490..00000000 --- a/templates/main/jams/profile.html +++ /dev/null @@ -1,103 +0,0 @@ -{% extends "main/base.html" %} -{% block title %}Code Jams | My Profile{% endblock %} -{% block og_title %}Code Jams | My Profile{% endblock %} - -{% block content %} -<div class="uk-section"> - <div class="uk-container uk-container-small"> - <h1 class="uk-header uk-article-title"> - Code Jams: My Profile - </h1> - - {% if done %} - <p class="uk-alert uk-alert-success"> - Thanks - your data has been saved! - </p> - {% else %} - <p class="uk-alert uk-alert-primary"> - Please make sure you've filled this out correctly, as we do use this data when evaluating your code jam - application. - <br /> - <br /> - You may come back here and edit your data at any time. - </p> - {% endif %} - - {% if form %} - <form class="uk-form-horizontal" action="{{ url_for("main.jams.profile", form=form) }}" method="post"> - {% else %} - <form class="uk-form-horizontal" action="{{ url_for("main.jams.profile") }}" method="post"> - {% endif %} - - <div> - <div class="uk-form-label"> - <label class="uk-form-label" for="gitlab_username">GitLab Username</label> - </div> - <div class="uk-form-controls-text uk-form-controls"> - <input class="uk-input" type="text" name="gitlab_username" id="gitlab_username" value="{{ participant.gitlab_username }}" required> - </div> - </div> - <div> - <div class="uk-form-label"> - <label class="uk-form-label" for="timezone">Timezone</label> - </div> - <div class="uk-form-controls-text uk-form-controls"> - <input class="uk-input" type="text" name="timezone" id="timezone" value="{{ participant.timezone }}" required> - </div> - </div> - <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/> - <br /> - - <div class="uk-text-center"> - <a class="uk-button uk-button-default" href="{{ url_for("main.jams.index") }}"> - <i class="uk-icon fa-fw far fa-arrow-left"></i> Back - </a> - <button type="submit" class="uk-button uk-button-primary" id="submit"> - <i class="uk-icon fa-fw far fa-check"></i> Save - </button> - - {% if existing %} - <a class="uk-button uk-button-danger" href="{{ url_for("main.jams.retract") }}"> - <i class="uk-icon fa-fw fas fa-bomb"></i> Delete - </a> - {% else %} - <a class="uk-button uk-button-default uk-text-muted uk-link-muted cursor-default" - uk-tooltip="title: You can't delete your profile because you haven't submitted one yet!; pos: bottom"> - <i class="uk-icon fa-fw fas fa-bomb"></i> Delete - </a> - {% endif %} - </div> - </form> - </div> -</div> - - - -<script type="application/javascript"> - const tz = moment().format("Z"); - - const gitlab_input = document.getElementById("gitlab_username"); - const tz_input = document.getElementById("timezone"); - - const submit_button = document.getElementById("submit"); - - function checkInputs() { - if (gitlab_input.value.length < 1) - return submit_button.disabled = true; - - if (tz_input.value.length < 1) - return submit_button.disabled = true; - - submit_button.disabled = false; - } - - gitlab_input.oninput = checkInputs; - tz_input.oninput = checkInputs; - - if (tz_input.value.length < 1) { - document.getElementById("timezone").value = "UTC" + tz; - } - - checkInputs(); -</script> -{% endblock %} |