mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Merge pull request #2740 from Schiriki123/master
Add name labels to login form
This commit is contained in:
		
						commit
						316aeba1b0
					
				@ -1,6 +1,6 @@
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div ref="wrapper" class="relative">
 | 
					  <div ref="wrapper" class="relative">
 | 
				
			||||||
    <input :id="inputId" ref="input" v-model="inputValue" :type="actualType" :step="step" :min="min" :readonly="readonly" :disabled="disabled" :placeholder="placeholder" class="rounded bg-primary text-gray-200 focus:border-gray-300 focus:bg-bg focus:outline-none border border-gray-600 h-full w-full" :class="classList" @keyup="keyup" @change="change" @focus="focused" @blur="blurred" />
 | 
					    <input :id="inputId" :name="inputName" ref="input" v-model="inputValue" :type="actualType" :step="step" :min="min" :readonly="readonly" :disabled="disabled" :placeholder="placeholder" class="rounded bg-primary text-gray-200 focus:border-gray-300 focus:bg-bg focus:outline-none border border-gray-600 h-full w-full" :class="classList" @keyup="keyup" @change="change" @focus="focused" @blur="blurred" />
 | 
				
			||||||
    <div v-if="clearable && inputValue" class="absolute top-0 right-0 h-full px-2 flex items-center justify-center">
 | 
					    <div v-if="clearable && inputValue" class="absolute top-0 right-0 h-full px-2 flex items-center justify-center">
 | 
				
			||||||
      <span class="material-icons text-gray-300 cursor-pointer" style="font-size: 1.1rem" @click.stop.prevent="clear">close</span>
 | 
					      <span class="material-icons text-gray-300 cursor-pointer" style="font-size: 1.1rem" @click.stop.prevent="clear">close</span>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
@ -33,6 +33,7 @@ export default {
 | 
				
			|||||||
    textCenter: Boolean,
 | 
					    textCenter: Boolean,
 | 
				
			||||||
    clearable: Boolean,
 | 
					    clearable: Boolean,
 | 
				
			||||||
    inputId: String,
 | 
					    inputId: String,
 | 
				
			||||||
 | 
					    inputName: String,
 | 
				
			||||||
    step: [String, Number],
 | 
					    step: [String, Number],
 | 
				
			||||||
    min: [String, Number]
 | 
					    min: [String, Number]
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
@ -117,4 +118,4 @@ input:read-only {
 | 
				
			|||||||
input::-webkit-calendar-picker-indicator {
 | 
					input::-webkit-calendar-picker-indicator {
 | 
				
			||||||
  filter: invert(1);
 | 
					  filter: invert(1);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</style>
 | 
					</style>
 | 
				
			||||||
 | 
				
			|||||||
@ -34,10 +34,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        <form v-show="login_local" @submit.prevent="submitForm">
 | 
					        <form v-show="login_local" @submit.prevent="submitForm">
 | 
				
			||||||
          <label class="text-xs text-gray-300 uppercase">{{ $strings.LabelUsername }}</label>
 | 
					          <label class="text-xs text-gray-300 uppercase">{{ $strings.LabelUsername }}</label>
 | 
				
			||||||
          <ui-text-input v-model.trim="username" :disabled="processing" class="mb-3 w-full" />
 | 
					          <ui-text-input v-model.trim="username" :disabled="processing" class="mb-3 w-full" inputName="username" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          <label class="text-xs text-gray-300 uppercase">{{ $strings.LabelPassword }}</label>
 | 
					          <label class="text-xs text-gray-300 uppercase">{{ $strings.LabelPassword }}</label>
 | 
				
			||||||
          <ui-text-input v-model.trim="password" type="password" :disabled="processing" class="w-full mb-3" />
 | 
					          <ui-text-input v-model.trim="password" type="password" :disabled="processing" class="w-full mb-3" inputName="password" />
 | 
				
			||||||
          <div class="w-full flex justify-end py-3">
 | 
					          <div class="w-full flex justify-end py-3">
 | 
				
			||||||
            <ui-btn type="submit" :disabled="processing" color="primary" class="leading-none">{{ processing ? 'Checking...' : $strings.ButtonSubmit }}</ui-btn>
 | 
					            <ui-btn type="submit" :disabled="processing" color="primary" class="leading-none">{{ processing ? 'Checking...' : $strings.ButtonSubmit }}</ui-btn>
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
@ -281,4 +281,4 @@ export default {
 | 
				
			|||||||
    this.checkStatus()
 | 
					    this.checkStatus()
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user