fix submit buttons messages
parent
40e4766bff
commit
d0faeb7b42
|
@ -48,12 +48,10 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<span class="left"></span>
|
<span class="left"></span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<input type="submit" data-type="{{ .Class }}" data-message="{{ if eq .Class " frontmatter-only " }}The fields were put on their way.{{ else if eq .Class "content-only " }}Every byte was saved.{{ else }}Post saved with pomp and circumstance.{{ end }}"
|
<input type="submit" data-type="{{ .Class }}" data-message="{{ if eq .Class "frontmatter-only" }}The fields were put on their way.{{ else if eq .Class "content-only" }}Every byte was saved.{{ else }}Post saved with pomp and circumstance.{{ end }}"
|
||||||
data-regenerate="false" value="Save">
|
data-regenerate="false" value="Save"> {{ if and (eq .Class "complete") ( .IsPost ) }}
|
||||||
{{ if and (eq .Class "complete") ( .IsPost ) }}
|
<input type="submit" data-type="{{ .Class }}" data-message="Post scheduled." data-schedule="true" value="Schedule"> {{ end }}
|
||||||
<input type="submit" data-type="{{ .Class }}" data-message="Post scheduled." data-schedule="true" value="Schedule">
|
<input type="submit" data-type="{{ .Class }}" data-message="{{ if eq .Class "frontmatter-only" }}Saved and regenerated.{{ else if eq .Class "content-only" }}Done. What do you want more?{{ else }}Post published. Go and share it!{{ end }}" data-regenerate="true"
|
||||||
{{ end }}
|
|
||||||
<input type="submit" data-type="{{ .Class }}" data-message="{{ if eq .Class " frontmatter-only " }}Saved and regenerated.{{ else if eq .Class "content-only " }}Done. What do you want more?{{ else }}Post published. Go and share it!{{ end }}" data-regenerate="true"
|
|
||||||
class="default" value="Publish">
|
class="default" value="Publish">
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue