Skip to content

Commit

Permalink
Update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
xuqingfeng committed Dec 15, 2023
1 parent 5a188e5 commit 1176e12
Show file tree
Hide file tree
Showing 3 changed files with 200 additions and 197 deletions.
2 changes: 1 addition & 1 deletion statik/statik.go

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,41 +23,41 @@
<br>
<div class="container" id="index" v-cloak>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-8">
<div class="col-lg-2"></div>
<div class="col-lg-8">
<form action="#" class="form-horizontal" v-on:submit.prevent>
<fieldset>
<legend>Mailman</legend>
<div class="form-group row m-1">
<label for="inputEmail" class="col-sm-1 control-label">{{i18n.subject}}</label>
<div class="col-sm-11">
<label for="inputEmail" class="col-lg-1 control-label">{{i18n.subject}}</label>
<div class="col-lg-11">
<input type="text" class="form-control" id="inputEmail"
autocomplete="off" v-model="subject">
</div>
</div>
<div class="form-group row m-1">
<label for="to" class="col-sm-1 control-label">{{i18n.to}}</label>
<div class="col-sm-5">
<label for="to" class="col-lg-1 control-label">{{i18n.to}}</label>
<div class="col-lg-5">
<select class="form-control custom-select" id="to">
</select>
</div>
<label for="cc" class="col-sm-1 control-label">{{i18n.cc}}</label>
<div class="col-sm-5">
<label for="cc" class="col-lg-1 control-label">{{i18n.cc}}</label>
<div class="col-lg-5">
<select class="form-control custom-select" id="cc">
</select>
</div>
</div>
<div class="form-group row m-1">
<label for="select" class="col-sm-1 control-label">{{i18n.from}}</label>
<div class="col-sm-5">
<label for="select" class="col-lg-1 control-label">{{i18n.from}}</label>
<div class="col-lg-5">
<select class="form-control custom-select" id="select" v-model="from">
<option v-for="email in emails" v-bind:value="email">{{email}}</option>
</select>
</div>
</div>
<div class="form-group row m-1">
<label for="textArea" class="col-sm-1 control-label">{{i18n.body}}</label>
<div class="col-sm-11">
<label for="textArea" class="col-lg-1 control-label">{{i18n.body}}</label>
<div class="col-lg-11">
<textarea class="form-control" rows="15" id="textArea" v-model="body" placeholder="{{i18n.support_markdown_syntax}}"></textarea>
<div class="form-checkbox">
<input type="checkbox" class="form-check-input" v-model="priority">
Expand All @@ -69,17 +69,17 @@
</div>
<br>
<div class="form-group row m-1">
<div class="col-sm-2 offset-sm-8">
<button type="submit" class="btn btn-secondary" v-on:click="preview">{{i18n.preview}}</button>
<div class="col-lg-2 offset-sm-8">
<button type="submit" class="btn btn-info" v-on:click="preview">{{i18n.preview}}</button>
</div>
<div class="col-sm-2">
<div class="col-lg-2">
<button type="submit" class="btn btn-primary float-right" v-on:click="send">{{i18n.send}}
</button>
</div>
</div>
<!-- TODO: remove -->
<div class="form-group row m-1">
<div class="col-sm-10 col-sm-offset-2">
<div class="col-lg-10 col-lg-offset-2">
<span class="label label-primary" v-bind:class="{ 'hidden':previewLinkIsHidden }"><a
href="/api/preview" target="_blank">{{i18n.go_to_preview}}</a></span>
</div>
Expand All @@ -89,15 +89,15 @@
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-8">
<div class="col-lg-2"></div>
<div class="col-lg-8">
<form class="dropzone" id="attachment"></form>
</div>
</div>
<footer>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-8">
<div class="col-lg-2"></div>
<div class="col-lg-8">
<ul class="list-unstyled">
<li><a href="/index.html">{{i18n.index}}</a></li>
<li><a href="/setting.html">{{i18n.setting}}</a></li>
Expand All @@ -121,7 +121,7 @@
<img src="https://img.shields.io/github/license/xuqingfeng/mailman.svg?style=flat-square" alt="license">
</p>
</div>
<div class="col-sm-2"></div>
<div class="col-lg-2"></div>
</div>
</footer>
</div>
Expand Down
Loading

0 comments on commit 1176e12

Please sign in to comment.