forked from kevadesu/forgejo
[GITEA] Allow user to select email for file operations in Web UI
- Add a dropdown to the web interface for changing files to select which Email should be used for the commit. It only shows (and verifies) that a activated mail can be used, while this isn't necessary, it's better to have this already in place. - Added integration testing. - Resolves https://codeberg.org/forgejo/forgejo/issues/281 (cherry picked from commit564e701f40
) (cherry picked from commitde8f2e03cc
)
This commit is contained in:
parent
7e932b7fca
commit
0182cff12e
10 changed files with 303 additions and 25 deletions
|
@ -66,6 +66,14 @@
|
|||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="field {{if .Err_CommitMailID}}error{{end}}">
|
||||
<label for="commit_mail_id">Commit email</label>
|
||||
<select class="ui selection dropdown" name="commit_mail_id">
|
||||
{{range .CommitMails}}
|
||||
<option{{if eq $.DefaultCommitMail .Email}} selected="selected"{{end}} value="{{.ID}}">{{.Email}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<button id="commit-button" type="submit" class="ui primary button">
|
||||
{{if eq .commit_choice "commit-to-new-branch"}}{{ctx.Locale.Tr "repo.editor.propose_file_change"}}{{else}}{{ctx.Locale.Tr "repo.editor.commit_changes"}}{{end}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue