Tease about what will come next.

mj-v1.12
domi41 4 years ago
parent bafb4da0f9
commit de1d54ada9

@ -1210,8 +1210,13 @@ polls.subject.placeholder = Urgency, Importance, Demand…
polls.description.label = Description (rationale, constitutive details, consequences…)
polls.gradation.label = Grades
polls.candidates.label = Candidates
polls.candidates.pool.issues_merges = All Issues and Merge Requests
polls.candidates.pool.issues = All Issues only
polls.candidates.pool.merges = All Merge Requests only
polls.candidates.pool.indices = All of these
polls.candidates.pool.indices.help = Comma-separated list of issues
polls.edit = Edit Poll
polls.edit.subheader = Should one be allowed to change the subject?
polls.edit.subheader = Should one be allowed to change the subject after the poll has started?
polls.modal.deletion.header = Are you sure you want to delete this poll?
polls.modal.deletion.description = This operation CANNOT be undone! It will also delete all attached judgments.
polls.judgments.create.success = Your judgment was recorded. Thank you ! (+0.618 karma)

@ -2,15 +2,6 @@
<div class="repository new poll">
{{template "repo/header" .}}
<div class="ui container">
<div class="navbar">
{{/* {{template "repo/poll/navbar" .}}*/}}
{{if and (or .CanWriteIssues .CanWritePulls) .PageIsEditPoll}}
<div class="ui right floated secondary menu">
<a class="ui green button" href="{{$.RepoLink}}/polls/new">{{.i18n.Tr "repo.polls.new"}}</a>
</div>
{{end}}
</div>
<div class="ui divider"></div>
<h2 class="ui dividing header">
{{if .PageIsEditPoll}}
{{.i18n.Tr "repo.polls.edit"}}
@ -27,7 +18,8 @@
<div class="field {{if .Err_Title}}error{{end}}">
{{/* form_poll_subject or form-poll-subject ? */}}
<label for="form_poll_subject">{{.i18n.Tr "repo.polls.subject.label"}}</label>
<input id="form_poll_subject" name="subject" placeholder="{{.i18n.Tr "repo.polls.subject.placeholder"}}"
<input id="form_poll_subject" name="subject"
placeholder="{{.i18n.Tr "repo.polls.subject.placeholder"}}"
value="{{.subject}}" autofocus required maxlength="128">
</div>
<div class="field">
@ -41,6 +33,26 @@
<option value="emote6-1">🤮 😒 😐 🙂 😀 🤩</option>
</select>
</div>
<div class="field disabled">
<label>{{ .i18n.Tr "repo.polls.candidates.label" }}</label>
<label>
<input type="radio" name="candidates_pool" value="issues_merges" checked>
{{ .i18n.Tr "repo.polls.candidates.pool.issues_merges" }}
</label>
<label>
<input type="radio" name="candidates_pool" value="issues">
{{ .i18n.Tr "repo.polls.candidates.pool.issues" }}
</label>
<label>
<input type="radio" name="candidates_pool" value="merges">
{{ .i18n.Tr "repo.polls.candidates.pool.merges" }}
</label>
<label>
<input type="radio" name="candidates_pool" value="indices">
{{ .i18n.Tr "repo.polls.candidates.pool.indices" }}
<input class="inline-input" type="text" name="candidates_pool_indices" title="{{ .i18n.Tr "repo.polls.candidates.pool.indices.help" }}" placeholder="1, 9, 12">
</label>
</div>
</div>
<div class="ui container">

@ -25,6 +25,15 @@
padding-bottom: 0.6em;
}
.ui.form input[type="text"].inline-input {
display: inline-block;
width: initial;
line-height: 1em;
height: 1.62em;
padding-left: 0.3em;
padding-right: 0.3em;
}
// ____ _ _ ____ _
// | _ \ ___ | | | | __ ) __ _ __| | __ _ ___

Loading…
Cancel
Save