29 lines
1.1 KiB
Text
29 lines
1.1 KiB
Text
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3 or later. See
|
|
-# the COPYRIGHT file.
|
|
|
|
- content_for :head do
|
|
:javascript
|
|
$(document).ready(function () {
|
|
new Diaspora.TagsAutocomplete("#profile_tag_string", {preFill: gon.preloads.tagsArray});
|
|
new Diaspora.ProfilePhotoUploader();
|
|
});
|
|
|
|
.settings_container.container-fluid
|
|
.row
|
|
.col-md-12
|
|
= render "shared/settings_nav"
|
|
|
|
.row
|
|
.col-md-12
|
|
- content_for :submit_block do
|
|
= link_to t("cancel"), local_or_remote_person_path(current_user.person), class: "btn btn-default"
|
|
= submit_tag t(".update_profile"), class: "btn btn-primary pull-right", id: "update_profile"
|
|
|
|
- flash.each do |name, msg|
|
|
.alert{class: "alert-#{flash_class name}", role: "alert"}
|
|
= msg
|
|
|
|
= form_tag profile_path, method: :put, multipart: true, id: "update_profile_form" do
|
|
= render "edit_public", profile: @profile, aspect: @aspect, person: @person
|
|
= render "edit_private", person: @person, profile: @profile, aspect: @aspect, step: @step
|