Browse Source

feat: fixing the pages for the dropzone

tags/vopendata0.1.2
colorfulberry 5 years ago
parent
commit
20e967a5de
1 changed files with 14 additions and 12 deletions
  1. +14
    -12
      templates/repo/datasets/index.tmpl

+ 14
- 12
templates/repo/datasets/index.tmpl View File

@@ -5,20 +5,22 @@
<input name="id" value="{{.dataset.ID}}" type="hidden" />
{{.CsrfTokenHtml}}
{{template "base/alert" .}}
<div class="ui two column stackable grid {{if .Error}}hide{{end}}" id="dataset-content">
<div class="column">
<h2>{{.dataset.Title}}</h2>
<div id="dataset-desc">
<span class="no-description text-italic">{{.dataset.Description}}</span>
<div class="ui stackable grid {{if .Error}}hide{{end}}" id="dataset-content">
<div class="row">
<div class="column sixteen {{if .Permission.CanWrite $.UnitTypeDatasets}}twelve{{end}} wide">
<h2>{{.dataset.Title}}</h2>
<div id="dataset-desc">
<span class="no-description text-italic">{{.dataset.Description}}</span>
</div>
</div>
{{if .Permission.CanWrite $.UnitTypeDatasets}}
<div class="column four wide right aligned">
<a class="ui button primary" href="javascript:void(0)" id="dataset-edit">
{{.i18n.Tr "dataset.edit"}}
</a>
</div>
{{end}}
</div>
{{if .Permission.CanWrite $.UnitTypeDatasets}}
<div class="column right aligned">
<a class="ui button primary" href="javascript:void(0)" id="dataset-edit">
{{.i18n.Tr "dataset.edit"}}
</a>
</div>
{{end}}
</div>

<div class="ui grid form segment success {{if not .Error}}hide{{end}}" id="dataset-content-edit">


Loading…
Cancel
Save