mirror of
1
Fork 0

Use textarea as we expect lots of input

This commit is contained in:
erik 2024-03-19 13:52:00 +01:00
parent 09cac163e0
commit 4c1d12b2e4
1 changed files with 20 additions and 24 deletions

View File

@ -75,15 +75,11 @@
<!-- TODO: implement Err_FederationRepos somewhere --> <!-- TODO: implement Err_FederationRepos somewhere -->
<div class="field {{if .Err_FederationRepos}}error{{end}}"> <div class="field {{if .Err_FederationRepos}}error{{end}}">
<label for="federation_repos">{{ctx.Locale.Tr "repo.settings.federation_labelname_repo"}}</label> <label for="federation_repos">{{ctx.Locale.Tr "repo.settings.federation_labelname_repo"}}</label>
<input id="federation_repos" name="federation_repos" value="{{.Repository.FederationRepos}}" data-repo-name="{{.Repository.FederationRepos}}"> <textarea id="repo_list" name="repo_list" rows="2" placeholder="{{ctx.Locale.Tr "repo.settings.federation_repo_list_empty"}}"></textarea>
</div> </div>
<div class="field"> <div class="field">
<button class="ui primary button">{{ctx.Locale.Tr "repo.settings.update_settings"}}</button> <button class="ui primary button">{{ctx.Locale.Tr "repo.settings.update_settings"}}</button>
</div> </div>
<div class="field {{if .Err_FederationRepos}}error{{end}}">
<label for="description">{{ctx.Locale.Tr "repo.settings.federation_federated_repo_list"}}</label>
<textarea id="description" name="description" rows="2" placeholder="{{ctx.Locale.Tr "repo.settings.federation_repo_list_empty"}}" maxlength="255">{{.Repository.FederationRepos}}</textarea>
</div>
</form> </form>
</div> </div>
{{end}} {{end}}