template: Move admin_profile_field_list template to settings folder.

Moved `admin_profile_field_list` template to `/templates/settings/` folder
as earlier, it was inaccurately placed within the `/templates` folder
rather than the `/templates/settings` folder.
Also modified the node tests to reflect the new changes.
This commit is contained in:
aryanshridhar
2021-04-24 23:35:44 +05:30
committed by Tim Abbott
parent 19699720bc
commit 17133b5b1e
3 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ function test_populate(opts) {
const template_data = [];
stub_templates((fn, data) => {
assert.equal(fn, "admin_profile_field_list");
assert.equal(fn, "settings/admin_profile_field_list");
template_data.push(data);
return "whatever";
});

View File

@@ -1,7 +1,7 @@
import $ from "jquery";
import {Sortable} from "sortablejs";
import render_admin_profile_field_list from "../templates/admin_profile_field_list.hbs";
import render_admin_profile_field_list from "../templates/settings/admin_profile_field_list.hbs";
import render_settings_profile_field_choice from "../templates/settings/profile_field_choice.hbs";
import * as channel from "./channel";

View File

@@ -42,7 +42,7 @@
<hr />
<div class="edit_profile_field_choices_container">
{{#each choices}}
{{> settings/profile_field_choice }}
{{> profile_field_choice }}
{{/each}}
</div>
</div>