Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fe4d2649
authored
May 14, 2021
by
Евгений
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Улучшение #19461
Страница настройки целевых аккаунтов.
1 parent
1f1d0ba6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
resources/js/Pages/Tokens/Edit.vue
resources/js/Pages/Tokens/Edit.vue
View file @
fe4d264
...
@@ -36,30 +36,26 @@
...
@@ -36,30 +36,26 @@
</div>
</div>
</form>
</form>
</div>
</div>
<div
v-if=
"
state.campaigns.length || state.token_
campaigns.length"
>
<div
v-if=
"
campaigns.length || token.
campaigns.length"
>
<h2
class=
"mt-12 font-bold text-2xl"
>
Campaigns
</h2>
<h2
class=
"mt-12 font-bold text-2xl"
>
Campaigns
</h2>
<div
class=
"mt-4 flex flex-wrap"
>
<div
class=
"mt-4 flex flex-wrap"
>
<div
v-if=
"state.campaigns.length"
class=
"flex flex-wrap"
>
<form
v-if=
"campaigns.length"
@
submit
.
prevent=
"campaignAdd"
class=
"flex flex-wrap"
>
<button
class=
"btn-indigo hover:underline"
<loading-button
:loading=
"campaign_add_form.processing"
class=
"btn-indigo hover:underline"
tabindex=
"-1"
tabindex=
"-1"
type=
"button"
type=
"submit"
@
click=
"campaignAdd"
>
>
Add
Add
</button>
</loading-button>
<select-input
v-model=
"state.campaign_id"
<select-input
v-model=
"campaign_add_form.campaign_id"
:readonly=
"state.campaign_id"
:error=
"campaign_add_form.errors.campaign_id"
:readonly=
"campaign_add_form.campaign_id"
class=
"px-6"
class=
"px-6"
>
>
<option
v-for=
"campaign in
state.
campaigns"
:value=
"campaign.id"
>
<option
v-for=
"campaign in campaigns"
:value=
"campaign.id"
>
{{
campaign
.
name
}}
{{
campaign
.
name
}}
</option>
</option>
</select-input>
</select-input>
</div>
<form
@
submit
.
prevent=
"campaignsUpdate"
>
<loading-button
:loading=
"campaigns_form.processing"
class=
"btn-indigo ml-auto"
type=
"submit"
>
Update campaigns
</loading-button>
</form>
</form>
</div>
</div>
<div
class=
"mt-4 flex flex-wrap"
>
<div
class=
"mt-4 flex flex-wrap"
>
...
@@ -70,13 +66,16 @@
...
@@ -70,13 +66,16 @@
<th
class=
"px-6 pt-6 pb-4"
>
Name
</th>
<th
class=
"px-6 pt-6 pb-4"
>
Name
</th>
<th
class=
"px-6 pt-6 pb-4"
>
Action
</th>
<th
class=
"px-6 pt-6 pb-4"
>
Action
</th>
</tr>
</tr>
<tr
v-for=
"campaign in
state.token_
campaigns"
:key=
"campaign.id"
<tr
v-for=
"campaign in
token.
campaigns"
:key=
"campaign.id"
class=
"hover:bg-gray-100 focus-within:bg-gray-100"
>
class=
"hover:bg-gray-100 focus-within:bg-gray-100"
>
<td
class=
"border-t py-3"
>
<td
class=
"border-t py-3"
>
{{
campaign
.
name
}}
{{
campaign
.
name
}}
</td>
</td>
<td
class=
"border-t py-3"
>
<td
class=
"border-t py-3"
>
<input
:id=
"'campaign-enabled-' + campaign.id"
:checked=
"campaign.enabled"
type=
"checkbox"
>
<input
:id=
"'campaign-enabled-' + campaign.id"
:checked=
"campaign.enabled"
@
change=
"campaignEnabled(campaign.id, !campaign.enabled)"
type=
"checkbox"
>
<label
:for=
"'campaign-enabled-' + campaign.id"
>
Enabled
</label>
<label
:for=
"'campaign-enabled-' + campaign.id"
>
Enabled
</label>
<button
class=
"text-red-600 hover:underline"
<button
class=
"text-red-600 hover:underline"
tabindex=
"-1"
tabindex=
"-1"
...
@@ -87,7 +86,7 @@
...
@@ -87,7 +86,7 @@
</button>
</button>
</td>
</td>
</tr>
</tr>
<tr
v-if=
"
state.token_
campaigns.length === 0"
>
<tr
v-if=
"
token.
campaigns.length === 0"
>
<td
class=
"border-t px-6 py-4"
colspan=
"4"
>
No campaigns found.
</td>
<td
class=
"border-t px-6 py-4"
colspan=
"4"
>
No campaigns found.
</td>
</tr>
</tr>
</table>
</table>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment