Browse Source

Update templates for removing style in html

pull/10/head
Hironsan 6 years ago
parent
commit
63f6d0871e
13 changed files with 42 additions and 30 deletions
  1. 16
      app/server/static/css/forum.css
  2. 2
      app/server/templates/admin/admin_base.html
  3. 4
      app/server/templates/admin/dataset_upload.html
  4. 2
      app/server/templates/admin/guideline.html
  5. 16
      app/server/templates/admin/label.html
  6. 12
      app/server/templates/annotation/annotation_base.html
  7. 2
      app/server/templates/annotation/document_classification.html
  8. 2
      app/server/templates/annotation/seq2seq.html
  9. 2
      app/server/templates/annotation/sequence_labeling.html
  10. 2
      app/server/templates/demo/demo_named_entity.html
  11. 2
      app/server/templates/demo/demo_text_classification.html
  12. 2
      app/server/templates/demo/demo_translation.html
  13. 8
      app/server/templates/projects.html

16
app/server/static/css/forum.css

@ -170,8 +170,9 @@ p {
} }
/*---------- SPACING ----------*/
.has-background-royalblue {
background-color:royalblue !important;
}
/* Padding Zero */ /* Padding Zero */
@ -438,6 +439,17 @@ p {
} }
} }
.pbrem075 {
padding-bottom: 0.75rem;
}
.mrrem025 {
margin-right: 0.25rem;
}
.mlrem-0375 {
margin-left:-.375rem;
}
/* Margin Auto */ /* Margin Auto */

2
app/server/templates/admin/admin_base.html

@ -18,7 +18,7 @@
</a> </a>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="columns" id="mail-app" style="margin-right:0;" v-cloak>
<div class="columns mr0" id="mail-app" v-cloak>
<aside class="column is-2 aside"> <aside class="column is-2 aside">
<div> <div>
<div class="main"> <div class="main">

4
app/server/templates/admin/dataset_upload.html

@ -26,10 +26,10 @@
{% csrf_token %} {% csrf_token %}
<div class="section"> <div class="section">
<div class="control"> <div class="control">
<label class="radio" style="margin-bottom:10px;">
<label class="radio mb10">
<input type="radio" name="format" checked> Upload a TXT file from your computer <input type="radio" name="format" checked> Upload a TXT file from your computer
</label> </label>
<div class="file has-name is-small" style="margin-bottom:20px;">
<div class="file has-name is-small mb20">
<label class="file-label"> <label class="file-label">
<input class="file-input" type="file" ref="file" name="csv_file" required v-on:change="handleFileUpload()"> <input class="file-input" type="file" ref="file" name="csv_file" required v-on:change="handleFileUpload()">
<span class="file-cta"> <span class="file-cta">

2
app/server/templates/admin/guideline.html

@ -9,7 +9,7 @@
<textarea class="editorMarkdown_textarea" :value="input" @input="update"></textarea> <textarea class="editorMarkdown_textarea" :value="input" @input="update"></textarea>
</div> </div>
<div class="column is-6 has-background-white" style="border-right: 1px solid #dbdbdb;border-top: 1px solid #dbdbdb; border-bottom: 1px solid #dbdbdb"> <div class="column is-6 has-background-white" style="border-right: 1px solid #dbdbdb;border-top: 1px solid #dbdbdb; border-bottom: 1px solid #dbdbdb">
<div class="content" style="line-height: 150%;padding: 20px;">
<div class="content pt20 pb20 pr20 pl20" style="line-height: 150%">
<div v-html="compiledMarkdown"></div> <div v-html="compiledMarkdown"></div>
</div> </div>
</div> </div>

16
app/server/templates/admin/label.html

@ -17,11 +17,11 @@
<div class="card-content"> <div class="card-content">
<div class="has-text-right"> <div class="has-text-right">
<div class="field is-grouped is-grouped-multiline has-text-weight-bold" style="padding-bottom:.75rem;">
<div class="field is-grouped is-grouped-multiline has-text-weight-bold pbrem075">
<div class="control" v-for="label in labels"> <div class="control" v-for="label in labels">
<div class="tags has-addons"> <div class="tags has-addons">
<span class="tag is-medium" v-bind:style="{ color: label.text_color, 'background-color': label.background_color }"> <span class="tag is-medium" v-bind:style="{ color: label.text_color, 'background-color': label.background_color }">
<button class="delete is-small" style="margin-right:.25rem;margin-left:-.375rem;" @click="removeLabel(label)"></button>
<button class="delete is-small mrrem025 mlrem-0375" @click="removeLabel(label)"></button>
[[ label.text ]] [[ label.text ]]
</span> </span>
<span class="tag is-medium">[[ label.shortcut ]]</span> <span class="tag is-medium">[[ label.shortcut ]]</span>
@ -30,9 +30,9 @@
</div> </div>
<div class="field is-horizontal bordered-row"> <div class="field is-horizontal bordered-row">
<label class="label column is-3" style="margin-bottom:0;">Preview</label>
<label class="label column is-3 mb0">Preview</label>
<div class="control column is-6"> <div class="control column is-6">
<div class="tags has-addons" style="font-weight:700;">
<div class="tags has-addons has-text-weight-bold">
<a class="tag is-medium" v-bind:style="{ color: textColor, backgroundColor: backgroundColor }"> <a class="tag is-medium" v-bind:style="{ color: textColor, backgroundColor: backgroundColor }">
[[ labelText ]] [[ labelText ]]
</a> </a>
@ -42,14 +42,14 @@
</div> </div>
<div class="field is-horizontal bordered-row"> <div class="field is-horizontal bordered-row">
<label class="label column is-3" style="margin-bottom:0;">Label Name</label>
<label class="label column is-3 mb0">Label Name</label>
<div class="control column is-6"> <div class="control column is-6">
<input class="input" type="text" placeholder="Text input" v-model="labelText"> <input class="input" type="text" placeholder="Text input" v-model="labelText">
</div> </div>
</div> </div>
<div class="field is-horizontal bordered-row"> <div class="field is-horizontal bordered-row">
<label class="label column is-3" style="margin-bottom:0;">Shortcut Key</label>
<label class="label column is-3 mb0">Shortcut Key</label>
<div class="control column is-6"> <div class="control column is-6">
<div class="select"> <div class="select">
<select v-model="selectedShortkey"> <select v-model="selectedShortkey">
@ -64,14 +64,14 @@
<div class="field is-horizontal bordered-row"> <div class="field is-horizontal bordered-row">
<label class="label column is-3" style="margin-bottom:0;">Background Color</label>
<label class="label column is-3 mb0">Background Color</label>
<div class="control column is-6"> <div class="control column is-6">
<input class="input" type="color" v-model="backgroundColor"> <input class="input" type="color" v-model="backgroundColor">
</div> </div>
</div> </div>
<div class="field is-horizontal bordered-row"> <div class="field is-horizontal bordered-row">
<label class="label column is-3" style="margin-bottom:0;">Text Color</label>
<label class="label column is-3 mb0">Text Color</label>
<div class="control column is-6"> <div class="control column is-6">
<input class="input" type="color" v-model="textColor"> <input class="input" type="color" v-model="textColor">
</div> </div>

12
app/server/templates/annotation/annotation_base.html

@ -10,7 +10,7 @@
<aside class="column is-3 aside hero is-fullheight"> <aside class="column is-3 aside hero is-fullheight">
<div> <div>
<div class="main" style="padding: 20px 20px">
<div class="main pr20 pl20">
<div class="field has-addons"> <div class="field has-addons">
<div class="control is-expanded"> <div class="control is-expanded">
<input class="input" type="text" placeholder="Search document" v-model="searchQuery" @keyup.enter="submit" style="border-right:none;box-shadow: none;-webkit-box-shadow: none;"> <input class="input" type="text" placeholder="Search document" v-model="searchQuery" @keyup.enter="submit" style="border-right:none;box-shadow: none;-webkit-box-shadow: none;">
@ -20,12 +20,12 @@
<div class="dropdown is-hoverable is-right"> <div class="dropdown is-hoverable is-right">
<div class="dropdown-trigger"> <div class="dropdown-trigger">
<button class="button" aria-haspopup="true" aria-controls="dropdown-menu" style="border-left:none"> <button class="button" aria-haspopup="true" aria-controls="dropdown-menu" style="border-left:none">
<span class="icon has-text-grey" style="padding-right:0;">
<span class="icon has-text-grey pr0">
<i class="fas fa-angle-down" aria-hidden="true"></i> <i class="fas fa-angle-down" aria-hidden="true"></i>
</span> </span>
</button> </button>
</div> </div>
<div class="dropdown-menu" id="dropdown-menu" role="menu" style="padding-top:0">
<div class="dropdown-menu pt0" id="dropdown-menu" role="menu">
<div class="dropdown-content"> <div class="dropdown-content">
<a class="dropdown-item"> <a class="dropdown-item">
<label class="radio"> <label class="radio">
@ -49,7 +49,7 @@
</div> </div>
</div> </div>
<div class="main" style="padding:0px 20px;">
<div class="main pt0 pb0 pr20 pl20">
<span>About [[ count ]] results</span> <span>About [[ count ]] results</span>
</div> </div>
@ -85,7 +85,7 @@
<progress class="progress is-inline-block" v-bind:class="progressColor" v-bind:value="achievement" max="100">30%</progress> <progress class="progress is-inline-block" v-bind:class="progressColor" v-bind:value="achievement" max="100">30%</progress>
</div> </div>
<div class="column is-8"> <div class="column is-8">
<span style="margin-left:10px;"><strong>[[ total - remaining ]]</strong></span>/<span>[[ total ]]</span>
<span class="ml10"><strong>[[ total - remaining ]]</strong></span>/<span>[[ total ]]</span>
</div> </div>
<div class="column is-1 has-text-right"> <div class="column is-1 has-text-right">
<a class="button" @click="isActive=!isActive"> <a class="button" @click="isActive=!isActive">
@ -98,7 +98,7 @@
{% block annotation-area %} {% endblock %} {% block annotation-area %} {% endblock %}
<div class="level" style="margin-top:30px;">
<div class="level mt30">
<a class="button level-left" v-on:click="prevPage" v-shortkey="{prev1: ['ctrl', 'p'], prev2: ['arrowup'], prev3: ['arrowleft']}" <a class="button level-left" v-on:click="prevPage" v-shortkey="{prev1: ['ctrl', 'p'], prev2: ['arrowup'], prev3: ['arrowleft']}"
@shortkey="prevPage"> @shortkey="prevPage">
<span class="icon"> <span class="icon">

2
app/server/templates/annotation/document_classification.html

@ -3,7 +3,7 @@
{% block annotation-area %} {% block annotation-area %}
<div class="card"> <div class="card">
<header class="card-header"> <header class="card-header">
<div class="card-header-title" style="padding:1.5rem;background-color:royalblue;">
<div class="card-header-title has-background-royalblue" style="padding:1.5rem;">
<div class="field is-grouped is-grouped-multiline"> <div class="field is-grouped is-grouped-multiline">
<div class="control" v-for="(label, item) in labels"> <div class="control" v-for="(label, item) in labels">
<div class="tags has-addons"> <div class="tags has-addons">

2
app/server/templates/annotation/seq2seq.html

@ -1,7 +1,7 @@
{% extends "annotation/annotation_base.html" %} {% extends "annotation/annotation_base.html" %}
{% load static %} {% load static %}
{% block annotation-area %} {% block annotation-area %}
<div class="card" style="background-color:royalblue;color:white;font-weight:bold;">
<div class="card has-text-weight-bold has-text-white has-background-royalblue">
<div class="card-content"> <div class="card-content">
<div class="content" v-if="docs[pageNumber]"> <div class="content" v-if="docs[pageNumber]">
[[ docs[pageNumber].text ]] [[ docs[pageNumber].text ]]

2
app/server/templates/annotation/sequence_labeling.html

@ -3,7 +3,7 @@
{% block annotation-area %} {% block annotation-area %}
<div class="card"> <div class="card">
<header class="card-header"> <header class="card-header">
<div class="card-header-title" style="padding:1.5rem;background-color:royalblue;">
<div class="card-header-title has-background-royalblue" style="padding:1.5rem;">
<div class="field is-grouped is-grouped-multiline"> <div class="field is-grouped is-grouped-multiline">
<div class="control" v-for="label in labels"> <div class="control" v-for="label in labels">
<div class="tags has-addons"> <div class="tags has-addons">

2
app/server/templates/demo/demo_named_entity.html

@ -3,7 +3,7 @@
{% block annotation-area %} {% block annotation-area %}
<div class="card"> <div class="card">
<header class="card-header"> <header class="card-header">
<div class="card-header-title" style="padding:1.5rem;background-color:royalblue;">
<div class="card-header-title has-background-royalblue" style="padding:1.5rem;">
<div class="field is-grouped is-grouped-multiline"> <div class="field is-grouped is-grouped-multiline">
<div class="control" v-for="label in labels"> <div class="control" v-for="label in labels">
<div class="tags has-addons"> <div class="tags has-addons">

2
app/server/templates/demo/demo_text_classification.html

@ -3,7 +3,7 @@
{% block annotation-area %} {% block annotation-area %}
<div class="card"> <div class="card">
<header class="card-header"> <header class="card-header">
<div class="card-header-title" style="padding:1.5rem;background-color:royalblue;">
<div class="card-header-title has-background-royalblue" style="padding:1.5rem;">
<div class="field is-grouped is-grouped-multiline"> <div class="field is-grouped is-grouped-multiline">
<div class="control" v-for="(label, item) in labels"> <div class="control" v-for="(label, item) in labels">
<div class="tags has-addons"> <div class="tags has-addons">

2
app/server/templates/demo/demo_translation.html

@ -1,7 +1,7 @@
{% extends "annotation/annotation_base.html" %} {% extends "annotation/annotation_base.html" %}
{% load static %} {% load static %}
{% block annotation-area %} {% block annotation-area %}
<div class="card" style="background-color:royalblue;color:white;font-weight:bold;">
<div class="card has-text-weight-bold has-text-white has-background-royalblue">
<div class="card-content"> <div class="card-content">
<div class="content" v-if="docs[pageNumber]"> <div class="content" v-if="docs[pageNumber]">
[[ docs[pageNumber].text ]] [[ docs[pageNumber].text ]]

8
app/server/templates/projects.html

@ -26,7 +26,7 @@
</section> </section>
<div class="container"> <div class="container">
<div class="columns" style="margin-top:0">
<div class="columns mt0">
<div class="column is-3"> <div class="column is-3">
<aside class="menu"> <aside class="menu">
<p class="menu-label"> <p class="menu-label">
@ -66,7 +66,7 @@
</div> </div>
{% endfor %} {% endfor %}
</section> </section>
<footer class="modal-card-foot" style="background-color:#dbdbdb !important;padding:20px !important;">
<footer class="modal-card-foot pt20 pb20 pr20 pl20 has-background-white-ter">
<button class="button is-primary">Create</button> <button class="button is-primary">Create</button>
<button class="button" @click="isActive=!isActive">Cancel</button> <button class="button" @click="isActive=!isActive">Cancel</button>
</footer> </footer>
@ -107,7 +107,7 @@
<section class="modal-card-body"> <section class="modal-card-body">
Are you sure you want to delete project? Are you sure you want to delete project?
</section> </section>
<footer class="modal-card-foot" style="background-color:#dbdbdb !important;padding:20px !important;">
<footer class="modal-card-foot pt20 pb20 pr20 pl20 has-background-white-ter">
<button class="button is-danger" @click="deleteProject(project)">Delete</button> <button class="button is-danger" @click="deleteProject(project)">Delete</button>
<button class="button" @click="isDelete=!isDelete">Cancel</button> <button class="button" @click="isDelete=!isDelete">Cancel</button>
</footer> </footer>
@ -115,7 +115,7 @@
</div> </div>
<div class="card-footer"> <div class="card-footer">
<a v-bind:href="'/projects/' + project.id + '/docs'" class="card-footer-item">Edit</a> <a v-bind:href="'/projects/' + project.id + '/docs'" class="card-footer-item">Edit</a>
<a href="#1" class="card-footer-item has-text-danger" style="font-weight:700" @click="isDelete=!isDelete">Delete</a>
<a href="#1" class="card-footer-item has-text-danger has-text-weight-bold" @click="isDelete=!isDelete">Delete</a>
</div> </div>
{% endif %} {% endif %}
</div> </div>

Loading…
Cancel
Save