Skip to content

Commit

Permalink
Merge pull request #2295 from DamnClin/simple-tab-navigation
Browse files Browse the repository at this point in the history
Simple tab navigation
  • Loading branch information
pascalgrimaud authored Jun 29, 2022
2 parents 03ecd99 + 63892a0 commit 2f9e766
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/main/webapp/app/module/primary/modules/Modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ <h2>Modules</h2>
<div class="jhipster-modules-form--field-line">
<label for="folder-path" class="jhipster-modules-form--field-label"> Project folder </label>

<input type="text" id="folder-path" v-model="folderPath" class="jhipster-modules-form--field" data-selector="folder-path-field" />
<input
tabindex="1"
type="text"
id="folder-path"
ref="folderPathInput"
v-model="folderPath"
class="jhipster-modules-form--field"
data-selector="folder-path-field"
/>
</div>

<div class="jhipster-modules-form--field-line" v-if="selectedModule" v-for="property in selectedModule.properties">
Expand All @@ -16,6 +24,7 @@ <h2>Modules</h2>
</label>

<input
tabindex="2"
type="text"
class="jhipster-modules-form--field"
:id="`module-property-${property.key}`"
Expand All @@ -27,6 +36,7 @@ <h2>Modules</h2>
/>

<input
tabindex="2"
type="number"
class="jhipster-modules-form--field"
:id="`module-property-${property.key}`"
Expand All @@ -38,6 +48,7 @@ <h2>Modules</h2>
/>

<select
tabindex="2"
class="jhipster-modules-form--field"
:id="`module-property-${property.key}`"
@change="setBooleanProperty(property.key, $event.target.value)"
Expand All @@ -64,7 +75,13 @@ <h2>Modules</h2>
<div>
<h2 class="jhipster-module-category--name">{{ category.name }}</h2>
<div v-for="module in category.modules" class="jhipster-module">
<div class="jhipster-module--content" @click="selectModule(module.slug)" :data-selector="`${module.slug}-module-content`">
<div
tabindex="3"
class="jhipster-module--content"
@click="selectModule(module.slug)"
@keyup.enter="selectModule(module.slug); $refs.folderPathInput.focus()"
:data-selector="`${module.slug}-module-content`"
>
<div class="jhipster-module--slug">{{ module.slug }}</div>
<div class="jhipster-module--description">{{ module.description}}</div>

Expand All @@ -88,6 +105,7 @@ <h2 class="jhipster-module-category--name">{{ category.name }}</h2>
</div>

<button
tabindex="3"
class="jhipster-module--apply-button"
:disabled="disabledApplication(module.slug)"
@click="applyModule(module.slug)"
Expand Down

0 comments on commit 2f9e766

Please sign in to comment.