Cloud-CV/EvalAI

View on GitHub
frontend/src/views/web/challenge/edit-challenge/edit-challenge-terms-and-conditions.html

Summary

Maintainability
Test Coverage
<section class="text-center pd-20 width-90">
    <div class="row">
        <div class="col s12 m12">
            <div class="ev-card-body pd-20 font-size-16">
                <form name="editTermsAndConditionsForm" ng-submit="challenge.editTermsAndConditions(editTermsAndConditionsForm.$valid)">
                    <div class="pass-title">Edit Terms And Conditions</div>
                      <div class="input-field align-left">
                        <trix-editor class="editor"
                                   ng-model-options="{ updateOn: 'blur' }" 
                                   spellcheck="false" class="trix-content" 
                                   ng-model="challenge.page.terms_and_conditions"
                                   angular-trix 
                                   trix-initialize="trixInitialize(e, editor);" 
                                   trix-change="trixChange(e, editor);" 
                                   trix-selection-change="trixSelectionChange(e, editor);" 
                                   trix-focus="trixFocus(e, editor);" 
                                   trix-blur="trixBlur(e, editor);" 
                                   trix-file-accept="trixFileAccept(e, editor);" 
                                   trix-attachment-add="trixAttachmentAdd(e, editor);" 
                                   trix-attachment-remove="trixAttachmentRemove(e, editor);"
                                   prevent-trix-file-accept = "true"
                                   placeholder="Terms and Conditions">
                        </trix-editor>
                        <code>Hint: To use MathJax in editor, use $$ $$</code> 
                      </div>
                    <ul class="inline-list hide-on-med-and-down">
                        <li>
                            <a ng-click="challenge.editTermsAndConditions(false)" class="dark-link pointer"><strong>Cancel</strong></a>
                        </li>
                        <li>
                            <button class="btn ev-btn-dark waves-effect waves-dark grad-btn grad-btn-dark fs-14" type="submit" value="submit">Submit</button>
                        </li>
                    </ul>
                </form>
            </div>
        </div>
    </div>
</section>