Commit 0163624f authored by gijs's avatar gijs

Merge branch 'master' of gitlab.constantvzw.org:osp/work.w

parents 57d039a1 f4258416
This diff is collapsed.
......@@ -62,8 +62,6 @@ window.W = window.W || {};
},
];
W.edit_mode = false;
var rangeType = {
undetermined: '0',
exact: '1',
......@@ -491,9 +489,7 @@ window.W = window.W || {};
}
},
getTemplate: function () {
return W.edit_mode ? '#node-template' : '#node-template-vue';
},
template: '#node-template-vue',
templateContext: function () {
return {
......
......@@ -7,80 +7,56 @@
<title>Notation W</title>
{% compress css %}
<link rel="stylesheet" href="{% static 'playground/vendors/reset.css' %}">
<link rel="stylesheet" href="{% static 'playground/vendors/backgrid.css' %}">
<link rel="stylesheet" href="{% static 'playground/vendors/backgrid-paginator.min.css' %}">
<link rel="stylesheet" href="{% static 'playground/css/styles.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'playground/css/styles.css' %}">
{% compress css %}
{% endcompress %}
<script id="base-template" type="text/template">
{% include "playground/underscore/base.mtpl" %}
</script>
<script id="header-template" type="text/template">
{% include "playground/underscore/header.mtpl" %}
</script>
<script id="home-template" type="text/template">
{% include "playground/underscore/home.mtpl" %}
</script>
<script id="user-list-template" type="text/template">
{% include "playground/underscore/user-list.mtpl" %}
</script>
<script id="user-detail-template" type="text/template">
{% include "playground/underscore/user-detail.mtpl" %}
</script>
<script id="about-template" type="text/template">
{% include "playground/underscore/about.mtpl" %}
</script>
<script id="login-template" type="text/template">
{% include "playground/underscore/login.mtpl" %}
<script id="base-template" type="text/template">
{% include "playground/underscore/base.mtpl" %}
</script>
<script id="logout-template" type="text/template">
{% include "playground/underscore/logout.mtpl" %}
<script id="create-template" type="text/template">
{% include "playground/underscore/create.mtpl" %}
</script>
<script id="register-template" type="text/template">
{% include "playground/underscore/register.mtpl" %}
<script id="field-alternative-template" type="text/template">
{% include "playground/underscore/field-alternative.mtpl" %}
</script>
<script id="score-list-template" type="text/template">
{% include "playground/underscore/score-list.mtpl" %}
<script id="field-boucle-template" type="text/template">
{% include "playground/underscore/field-boucle.mtpl" %}
</script>
<script id="search-template" type="text/template">
{% include "playground/underscore/search.mtpl" %}
<script id="field-effectif-template" type="text/template">
{% include "playground/underscore/field-effectif.mtpl" %}
</script>
<script id="filters-template" type="text/template">
{% include "playground/underscore/filters.mtpl" %}
</script>
<script id="create-template" type="text/template">
{% include "playground/underscore/create.mtpl" %}
</script>
<script id="score-template-vue" type="text/template">
{% include "playground/underscore/score-vue.mtpl" %}
<script id="header-template" type="text/template">
{% include "playground/underscore/header.mtpl" %}
</script>
<script id="field-effectif-template" type="text/template">
{% include "playground/underscore/field-effectif.mtpl" %}
<script id="home-template" type="text/template">
{% include "playground/underscore/home.mtpl" %}
</script>
<script id="score-template-form" type="text/template">
{% include "playground/underscore/score-form.mtpl" %}
<script id="login-template" type="text/template">
{% include "playground/underscore/login.mtpl" %}
</script>
<script id="node-template" type="text/template">
{% include "playground/underscore/node.mtpl" %}
<script id="logout-template" type="text/template">
{% include "playground/underscore/logout.mtpl" %}
</script>
<script id="node-form-template" type="text/template">
......@@ -91,26 +67,46 @@
{% include "playground/underscore/node-inline-form.mtpl" %}
</script>
<script id="node-template-vue" type="text/template">
{% include "playground/underscore/node-vue.mtpl" %}
</script>
<!-- Perhaps remove -->
<script id="rangefield-template" type="text/template">
{% include "playground/underscore/rangefield.mtpl" %}
</script>
<script id="field-alternative-template" type="text/template">
{% include "playground/underscore/field-alternative.mtpl" %}
<script id="register-template" type="text/template">
{% include "playground/underscore/register.mtpl" %}
</script>
<script id="field-boucle-template" type="text/template">
{% include "playground/underscore/field-boucle.mtpl" %}
<script id="score-template-form" type="text/template">
{% include "playground/underscore/score-form.mtpl" %}
</script>
<script id="node-template-vue" type="text/template">
{% include "playground/underscore/node-vue.mtpl" %}
<script id="score-list-template" type="text/template">
{% include "playground/underscore/score-list.mtpl" %}
</script>
<script id="score-template-vue" type="text/template">
{% include "playground/underscore/score-vue.mtpl" %}
</script>
<script id="search-template" type="text/template">
{% include "playground/underscore/search.mtpl" %}
</script>
<script id="slider-template" type="text/template">
{% include "playground/underscore/slider.mtpl" %}
</script>
<script id="user-detail-template" type="text/template">
{% include "playground/underscore/user-detail.mtpl" %}
</script>
<script id="user-list-template" type="text/template">
{% include "playground/underscore/user-list.mtpl" %}
</script>
</head>
<body>
......
<div class="axis-title" tabindex="0">
<span class="handle"></span>
<!-- The alternative symbol -->
<span id="alt_symbole"><%= altSymbol %></span>
<!-- The choice of tag -->
<select id="tag" class="el_tag">
<% _.each(tagChoices, function(tagChoice) {%>
<option value="<%= tagChoice %>" <% if (tag==tagChoice) { %>selected<% } %>><%= tagChoice %></option>
<% }); %>
</select>
<!-- The title of the axis-->
<span class="axis-title-edit" contenteditable="true"><%- title %></span>
<!-- Extra info over the axis -->
<span class="trigger_infos">(i)</span>
<button name="edit">modifier</button>
<button class="add">+</button>
<button class="effaceAxe">x</button>
<% if (sublines.length) { %>
<button class="toggle"></button>
<% } %>
<form></form>
</div>
<% if (sublines.length) { %>
<ol></ol>
<% } %>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment